This bug took a few hours to track down and simplify:
Accessing an undefined property by invoking a handler via an instance reference hangs the application. A 'kill' is necessary to terminate the application.
script UndefinedReferenceBombAppDelegate property parent : class "NSObject"
on applicationWillFinishLaunching_(aNotification) --my noSuchProperty -- THIS REPORTS key value non-compliance set callObj to current application's TestClass's alloc()'s init() log "here1" callObj's accessUndefinedMy() log "here2" -- NEVER REACHED end applicationWillFinishLaunching_
on applicationShouldTerminate_(sender) return current application's NSTerminateNow end applicationShouldTerminate_ end script
script TestClass property parent : class "NSObject"
on accessUndefinedMy() log "accessUndefinedMy()" -- return noSuchProperty -- THIS REPORTS undefined variable return my noSuchProperty -- THIS HANGS APPLICATION end accessUndefinedMy end script
-- Dave
|