[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSProcessInfo is not initialized when debugging

From: Richard Frith-Macdonald
Subject: Re: NSProcessInfo is not initialized when debugging
Date: Thu, 20 May 2004 14:53:02 +0100

On 20 May 2004, at 09:25, Martin Kuball wrote:

Nobody knows an answer? Or am I simply not in the right group to ask
this question?

Am Tuesday 18 May 2004 22:37 schrieb Martin Kuball:

My system is a debian unstable on Linux 2.4.26. When I try to debug
a programm that uses the gnustep-gui lib I get the following
message: ./shared_debug_obj/imgmerger: Uncaught exception
        NSInternalInconsistencyException, reason:
        GNUSTEP Internal Error:
        The private GNUstep function to establish the argv and environment
        variables was not called.

I tried to initialize the NSProcessInfo by myself using
        [NSProcessInfo initializeWithArguments: argv
                                     count: argc
                               environment: environ];
        [NSProcessInfo load];
right at the beginning of the main method. But nothing helped. Note
that the methods got executed because the error comes up only when
I call [NSProcessInfo processInfo] later in the code.

Any workaround known?

I use debian unstable.
Currently I'm on kernel 2.6.4-1, but I had no problem on older kernels either. You should not need to do anything special ... initialisation should be done automatically, so if you are having this problem, something is very messed up and you probably need to
reconfigure/rebuild the base library.

Looking at the core/base/config.log might help figure out what could have gone wrong ... but if not, your only option is to build the library with 'debug=yes' and run gdb on your
application to step through the code and see what is happening.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]