discuss-gnustep
[Top][All Lists]
Advanced

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

Re: bug with objc runtime (on Windows): Solved!!


From: Wim Oudshoorn
Subject: Re: bug with objc runtime (on Windows): Solved!!
Date: Thu, 19 May 2005 09:57:56 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (darwin)

"Lloyd Dupont" <lloyd@nova-mind.com> writes:

> It's a class initialization problem!
> if I use [c1 superclass] instead of 
> class_get_super_class(c1) it works!
> now, that's annoying because [c1 superclass] is an 
> undocumented call I'm not sure it would be always there....
> any C runtime function work around?

Your problem could be caused by the fact that the runtime
is not initialized yet.   
I can't remember the details, but as far as I remember lots
of objc runtime structures are dynamically populated.
Now you use some LoadLibrary call and afterwards directly
use lowlevel objc primitives.   So I am not suprised this does
not work.  

I am sure it can be made to work, but for that you have to investigate
how and when the runtime is completely initialized. 
Also don't forget to check that +load is called etcetera.

Wim Oudshoorn.




reply via email to

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