On 29-Dec-08, at 8:23 AM, Arnaud Nicolet wrote:
Hi,
I am trying to debug an app (ServiceApplication) which is crashing.
I have found where is the problem, but it's rather confusing: in a
blank service application, the same code does not produce any crash
and all works fine.
Here's what I have in the app for testing:
dim a As FolderItem
a=app.ExecutableFile.Parent.Child("Gam2") 'A random application to
be launched, for my tests
dim sh As Shell
System.DebugLog "Debug2a"
sh=new Shell
sh.Execute "open "+a.ShellPath
This code should launch an application (the launch method of a
folderitem is not recognized for a service application, for whatever
odd reason).
Launch requires a logged in user session because of the API's it uses
under the hood
I have tried alternate methods, such as the LaunchWithParametersMBS
function. Either way, the real app is crashing, while the code in a
new project works just fine. I'm sure the crash happens there, using
system.debuglog.
Now, debugging the real app is a pain. It's a startup item launched
with launchd. If I want to make modifications to my code and test
them, I have to restart the computer.
Use the launchctl app to install it, start it, stop it, or run it
whenever you want
Here's the crash report, which does not seem useful to me:
1 msgs40 Agent 0x0004c720
CTCPDirectMessage.ShowMessage%%o<CTCPDirectMessage>i4 + 7821
Now, I'm puzzled... I don't know what I should do to avoid that crash.
Any idea?
What does ShowMessage do ?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|