[MacRuby-devel] [MacRuby] #417: can't access vCardRepresentation.bytes of ABPerson

MacRuby ruby-noreply at macosforge.org
Sun Nov 1 14:38:59 PST 2009


#417: can't access vCardRepresentation.bytes of ABPerson
-------------------------------------+--------------------------------------
 Reporter:  vilandgr@…               |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  major                    |   Milestone:                       
Component:  MacRuby                  |    Keywords:  pointer              
-------------------------------------+--------------------------------------
 I tried to get the vCard representation of an ABRecord, but got an error
 that results in vm termination. To reproduce the error try the following
 steps:

 {{{
 user ~ $ macruby -v && uname -a
 MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
 Darwin CoolMacBook.local 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31
 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386
 user ~ $ macirb
 irb(main):001:0> framework "addressbook"
 => true
 irb(main):002:0> ab = ABAddressBook.sharedAddressBook
 => #<ABAddressBook:0x2003817a0>
 irb(main):003:0> ab.people.first.vCardRepresentation.bytes
 Assertion failed: (ValueType->getTypeID() != VoidTyID && "Pointer to void
 is not valid, use i8* instead!"), function get, file Type.cpp, line 931.
 Abort trap
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/417>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list