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 11:48:17 -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: <6BDB0A2A-464B-4D39-8155-7F2DE19F3E2C@mac.com>
References: <9E902F19-8551-4D14-9B71-8E7D9BC35C5F@mac.com> <20E64AA7-705C-41FD-AAC3-E8AA0D313134@great-white-software.com> <69926388-8701-44B7-851D-810B5E52D6D3@mac.com> <0AE9F479-73C3-4EAC-9029-982933BABC85@great-white-software.com> <6BDB0A2A-464B-4D39-8155-7F2DE19F3E2C@mac.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On 29-Dec-08, at 11:24 AM, Arnaud Nicolet wrote:

Le 29 déc. 08 à 19:18 (soir), Norman Palardy a écrit:

On 29-Dec-08, at 9:19 AM, Arnaud Nicolet wrote:

What does ShowMessage do?

It's a method which does this:

-Locate an helper app
-Write to a file in the bundle of the helper app for a message

Well this is likely to get an error and is not a good practice

Well, since the app is running as root, I don't see a problem (I check if the bundle exists and I can write wherever I want).
Perhaps you can explain further?

You simply should not try and put thing inside the app bundle
Bad practice and in certain cases will fail (like if the machine is net booted etc)
Write them to a temporary location

-Launch the helper app (well, would do)
-Initiate a timer to wait for a reply

(I was forced to use files as AppleEvents aren't catchable by a ServiceApplication and a socket had failed to work in my testings).

The piece of code that tries to launch the helper app is actually more complex than what I wrote:

The results I get are always the same:
Debug1
<path to app>
Debug2a
Debug2b or Debug2c or Debug2d

and nothing after that (well, a crash).

trying to launch (at least from what I can see)

Yes, but why does it crash only in my app and not in a blank project?
And how might I debug that?

Since I dont use the MBS stuff to launch apps I'm not sure but that seems to be where things die
IF you comment that out and dont launch does it still crash ?
Put more debugging statements in there so you can track down where it is crashing


_______________________________________________
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>