#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/>