#415: Crash with "Call result #2 has unhandled type" trying to display a window
-----------------------------------+----------------------------------------
Reporter: trej...@… | Owner: martinlagarde...@…
Type: defect | Status: assigned
Priority: blocker | Milestone: MacRuby 0.5
Component: MacRuby | Keywords:
-----------------------------------+----------------------------------------
Changes (by martinlagarde...@…):
* status: new => assigned
Comment:
Still investigating, but some comments:
I could reduce the code to the following:
{{{
framework 'Cocoa'
NSScreen.screens[0].visibleFrame
}}}
Using this also crashes:
{{{
framework 'Cocoa'
NSView.alloc.initWithFrame([0, 0, 10, 10]).frame
}}}
So apparently, the issue happens when NSRect is returned during 32 bits
execution.
On 64 bits, NSRect is aliased to CGRect, and CGFloats are doubles, instead
of floats.
The generated IR is a little different.
--
Ticket URL: <http://www.macruby.org/trac/ticket/415#comment:3>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel