This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Objective-C, Win32, dll, objc_exec_class and objc_load_callback


Michael,

On Fri, 05 Jan 2001 11:47:52 +0100, Michael Scheibler 
<michael.scheibler@onevision.de> wrote:

> I am currently trying to use dynamically linked libraries on win32. I
> found out, that the +load method of my class inside my dll is invoked
> correctly, but the callback routine _objc_load_callback, though
> redirected, is never invoked. There's no problem with that on other
> platforms.

The code for invoking the _objc_load_callback is in libobjc/init.c. Could you
please compile with debug info the ObjC library and put the debugger on your
code to see what happens?

The code you should look at is right at the end of objc_send_load(). Please let
me know what is happens on win32 as I don't have such a system to test onto.

On what other platforms did you try your code?

Best regards,
-- 
Ovidiu Predescu <ovidiu@cup.hp.com>
http://orion.nsr.hp.com/ (inside HP's firewall only)
http://www.geocities.com/SiliconValley/Monitor/7464/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]