[MacRuby] #1448: Pointer#to_object causes a segmentation fault
MacRuby
ruby-noreply at macosforge.org
Tue Feb 7 06:48:00 PST 2012
#1448: Pointer#to_object causes a segmentation fault
--------------------------------+-------------------------------------------
Reporter: l.rieder@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: critical | Milestone:
Component: MacRuby | Keywords: segfault
--------------------------------+-------------------------------------------
Comment(by watson1978@…):
NSData.bytes returns variable of void*.
I guess that It is difficult what knows actual variable size.
btw, if you serialize JSON, try following.
{{{
framework 'cocoa'
data = NSJSONSerialization.dataWithJSONObject({:foo => 42}, options: 0,
error: nil)
json = NSJSONSerialization.JSONObjectWithData(data, options:0, error:nil)
p json
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1448#comment:1>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list