Error: [app] has exited due to signal 10 (SIGBUS)

I’m building an AppleScript-based droplet in Xcode, which has worked ok so far, but suddenly started crashing with this error displayed in the debugger:

[app] has exited due to signal 10 (SIGBUS)

Now, the odd thing about this is that the app has run its entire course, and all that it needs to do it quit, so, it appears to crash on quit (I’ve tested by placing a “beep” before the “quit”, and the beep “works”).

Any ideas?

Thanks

– Clive