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 14:20:36 -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: <60B2360E-8B9E-4515-96C9-3529D9B896EB@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> <2C157792-FA8C-4237-9F92-0CBD7CB7F07C@great-white-software.com> <60B2360E-8B9E-4515-96C9-3529D9B896EB@mac.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

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

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

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

Ah, yes... I forgot to mention I had tried the temporary solution.
So far, I haven't found a special folder pointing to the same temporary folder for both root and an user (I think "/temporary folder" isn't writable for a normal user either). Ok, now that I use both service applications and launchd (not sure it changes something) for both apps, I'll restart my analysis about that point.

/tmp

If you're using the RB built in temporary item method it will be unique for each user (that's the point)

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

That's what my "f=app.executablefile.parent.child("1")" are for. Since I didn't wanted to recompile each time, I have made debugging statements. If a folder named "1" exists near my app, the app tries the first way. If there is a folder named "2", the app uses the second way (and so on). So, to debug, I simply rename an empty folder either "1","2","3" or "4" and my app tries different methods.

Among these 4 methods, there is one where the MBS plugin is not involved at all (using the shell and the "open" command), so it's like if I commented the MBS out.

So, yes, without the MBS plugin, it still crashes.
I also tried to use the bundle instead of the actual executable inside it (in case the launch expects it).

Not sure it service apps have any restrictions about starting other apps (I can't imagine that would be true but it's possible)
_______________________________________________
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>