After more then a month of trying I am still unable to get out plugin to even
regester itself with Mozilla.
I have build Mozilla debug (Win32_d.obj) version and have two versions of my
plugin. One built "debug", meaning with DEBUG defined for the mozilla headers
and one without.
When I run the NON-DEBUG version the debugger shows the code crashing in the
nsIPluginManager::RegisterPlugin() function. The reason for the crash appears
to be that the "this" pointer is not being passed though on the function call.
All the function parameters seem to be off set by one (the CID show up as the
value for the this pointer when I look at it in the debugger).
If I run the DEBUG version of the plugin I get an assert saying that the ESP
value was not properly saved across a function call. It then goes on to say
things about calling functions with pointer that have different calling
conventions..
If I try and debug this I get another box that says:
The exception Breakpoint has been reach
At this point I have no idea what is going on here. Are these to behaviours
really the same thing?
How can I tell where this linkage problem might be?
How is it possiblt for function parameters to be offset?
Steven Katz
BTW: I have converted our UNIX version of our plugin to nsIModule and that is
working fine. Why should Windows be such a pain in the ass.