#1217: C-level block crashes application ----------------------------------+----------------------------------------- Reporter: geetarista@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.11 Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- When trying to pass a block as the completion handler for beginSheetModalForWindow, my application crashes. Machines installed with BridgeSupport preview 3 work just fine, and passing the --bs flag to embed all bridgesupport files does not resolve. Crash report indicates EXE_BAD_ACCES. On a side note, is there any way to test distribution for computers without latest BridgeSupport? Currently I have to send a build out to a user and have them check console and crash reports to debug what's going on. It would be nice to be able to somehow do that locally, or at least be able to revert BridgeSupport version when testing. Code: {{{ def browse(sender) dialog = NSOpenPanel.openPanel dialog.canChooseFiles = false dialog.canChooseDirectories = true dialog.allowsMultipleSelection = false dialog.canCreateDirectories = true dialog.beginSheetModalForWindow( sender.window, completionHandler:Proc.new { |pressed| if (pressed == NSOKButton) puts "YAY!" end } ) end }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1217> MacRuby <http://macruby.org/>