Hello folks,
thanks for your support with the last thread. I will be butting
together a Tutorial/Howto on REALbasic+AppleScript and Dictionaries on
my Website later today and post the link to the list.
Although, now I face a different problem, related to the whole
AppleScript stuff:
The following code (in App.HandleAppleEvent) causes a crash (see
crashlog below):
-- Code:
dim tmpStr as string
if eventClass="send" and eventiD="dlmq" then
tmpStr = theEvent.StringParam("mcmd")
theEvent.ReplyBoolean=true
theEvent.ReplyString = "OK"
return true
end if
--
Although I think that the whole crash has to do something with the
.StringParam() call. Whenever the call contains a string like "mcmd"
the whole application goes bye-bye. If it contains an empty string
(""), it works just fine.
-- Crashlog:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000001
Thread 0 Crashed:
0 rbframework.dylib 0x0053c842 RuntimeAddString + 30
1 0x0017d5e0
App.#HandleAppleEventb401753020<App>o<AppleEvent>ss + 333
2 rbframework.dylib 0x00578891 RuntimeSetApplicationPath + 563
3 com.apple.AE 0x91515fb5 aeDispatchAppleEvent(AEDesc
const*, AEDesc*, unsigned long, unsigned char*) + 147
4 com.apple.AE 0x91515ee6
dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 44
5 com.apple.AE 0x91515db2 aeProcessAppleEvent + 190
6 com.apple.HIToolbox 0x92dd02cc AEProcessAppleEvent + 37
7 rbframework.dylib 0x005c79bd
PumpedEventQueueInternalHandleEvents() + 785
8 rbframework.dylib 0x005c7a67 PumpedEventQueueHandleEvents() + 11
9 rbframework.dylib 0x005c88c0 UpdateMouseCursor() + 808
10 rbframework.dylib 0x005c830d
CallFunctionWithExceptionHandling(void (*)()) + 9
11 rbframework.dylib 0x005c8559 mainloop() + 115
12 rbframework.dylib 0x005775f4 RuntimeRun + 40
--
How can this be fixed? Any workarounds? I would like to gather all
this troubleshooting info on my homepage to make it available to the
public domain. ;)
--
Thanks,
Bastian
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>