gnustep-dev
[Top][All Lists]
Advanced

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

Re: Internal Error: The private GNUstep function to establish the argv a


From: Sheldon Gill
Subject: Re: Internal Error: The private GNUstep function to establish the argv and environment was not called
Date: Fri, 03 Jun 2005 10:13:54 +0800
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Jürgen Lorenz Simon wrote:
Hi again,

just in case I ran a debugger on the deployment machine to extract a stacktrace:

GNUSTEP Internal Error:
The private GNUstep function to establish the argv and environment
variables was not called.
Please report the error to address@hidden


Maybe it helps to localise the problem.

For some reason, either that the code isn't executing +load or (more likely) there is an issue with GS_FAKE_MAIN.

The easy way around this is:

main( int argc, char **argv, char **env)
{
  <your variable declarations>
  NSProcessInfo *thisProcess;

  thisProcess = [NSProcessInfo initializeWithArguments: argv
                                                 count: argc
                                           environment: env];

  <rest of your code>
}

although you might get it to work simply by using:

  thisProcess = [NSProcessInfo processInfo];

The hard way is to work out why the fake main/load-initialize isn't working 
right.


Regards,
Sheldon




reply via email to

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