[MacRuby] #582: Segmentation fault using ScriptingBridge
#582: Segmentation fault using ScriptingBridge ---------------------------------+------------------------------------------ Reporter: martin@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ---------------------------------+------------------------------------------ Using MacRuby 0.5 beta 2, on Mac OS 10.6.2, typing the following code in macirb crashes with a segmentation fault on the last line: {{{ framework 'Foundation' framework 'ScriptingBridge' mail_app = SBApplication.applicationWithBundleIdentifier("com.apple.mail") properties = NSDictionary.dictionaryWithObjectsAndKeys "Hello", "subject", "Hello world!", "content", nil msg = mail_app.classForScriptingClass("outgoing message").alloc.initWithProperties(properties) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/582> MacRuby <http://macruby.org/>
#582: Segmentation fault using ScriptingBridge ---------------------------------+------------------------------------------ Reporter: martin@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: Component: MacRuby | Resolution: fixed Keywords: | ---------------------------------+------------------------------------------ Changes (by martinlagardette@…): * status: new => closed * resolution: => fixed Comment: Hi! Thanks for the report. Apparently, the bug is fixed, since with MacRuby SVN HEAD, the following code works: {{{ framework 'Foundation' framework 'ScriptingBridge' mail_app = SBApplication.applicationWithBundleIdentifier("com.apple.mail") properties = NSDictionary.dictionaryWithObjectsAndKeys("Hello", "subject", "Hello world!", "content", nil) mail_msg = mail_app.classForScriptingClass("outgoing message").alloc.initWithProperties(properties) properties = NSDictionary.dictionaryWithObject("fake@address.com", forKey:"address") mail_to = mail_app.classForScriptingClass("to recipient").alloc.initWithProperties(properties) mail_app.outgoingMessages.addObject(mail_msg) mail_msg.toRecipients.addObject(mail_to) mail_msg.send }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/582#comment:2> MacRuby <http://macruby.org/>
#582: Segmentation fault using ScriptingBridge ---------------------------------+------------------------------------------ Reporter: martin@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: | ---------------------------------+------------------------------------------ Changes (by martinlagardette@…): * milestone: => MacRuby 0.6 -- Ticket URL: <http://www.macruby.org/trac/ticket/582#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby