discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Problem with NSProcessInfo (?)


From: Adam Fedor
Subject: Re: Problem with NSProcessInfo (?)
Date: Mon, 19 May 2003 19:18:35 -0600


On Monday, May 19, 2003, at 01:55 PM, Chris B. Vetter wrote:

Hi,

after updating to last Friday's CVS, I noticed that the use of +load in
frameworks doesn't work anymore. I haven't updated for a while, so I'm
not sure if that problem (?) was introduced recently.

What happens is, if any class in your framework uses +(void)load { ... } and you link an application (curiosly, it doesn't happen for tools !?!?)
you will get the "GNUSTEP Internal Error" (did you include NSObject.h?)
message from NSProcessInfo -- although NSObject.h is explicitly
included, both in the framework's class and the application.

Uncomment the +load method, and the problem is gone.

Is +load required to do anything specific to work, eg. send a message to
super's load?



Does your +load method have any Objective-C code in it? Any Objective-C code could trigger an +initialize call, which might eventually lead to calling +[NSProcessInfo initialize] before the internal veriables have been set up.





reply via email to

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