realbasic-nug
[Top] [All Lists]

Re: Troubles with debugging

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Troubles with debugging
From: Norman Palardy <npalardy@great-white-software.com>
Date: Mon, 29 Dec 2008 08:53:07 -0700
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <9E902F19-8551-4D14-9B71-8E7D9BC35C5F@mac.com>
References: <9E902F19-8551-4D14-9B71-8E7D9BC35C5F@mac.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

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>


<Prev in Thread] Current Thread [Next in Thread>