Does anyone have any ideas or suggestion on a good way to debug into the MACROS?
Specifically, the ones used to implement addref and Queryinterface.  I'm hoppin
gthere is some way to get VC++ to expand there definition or something so I
don't have to hand edit them into the source to see why they are causing an
access violation.

Here is the overall problem:

I am converting our plugin (on windows) to use the nsIModule method of
registering itself.  I have gotten to the point where a debug build of the
latest mozilla code actually succeds in registering it (PR1 of Netscape does
not) using regxpcom.

When I try and run mozilla however, it crashes in a QueryInterface() call to the
GlobalServiceManger.  You see the old way, via NSGetFactory(), provided the
Service manager as a variable passed into the NSGetFactory() call.  The new way
does not, so as a workaround (since our code expects to get this at creation
time) I locate the ServiceManager with
nsServiceManager::GetGlobalServiceManager() and pass this to the constructor as
a replacement for what we use to get from NSGetFactory().

This worked on UNIX.

Any suggestion for alternative way to do this?

Any ideas what the problem with the GlobalServiceManager might be?

Steve Katz



Reply via email to