wxAutomationObject crashes on Release

Franky Braem f.braem at skynet.be
Sat Nov 25 07:57:24 PST 2006


Hi,

I'm testing my wxAutomationObject in wxJS and I see a crash in the 
destructor of wxAutomationObject. (I test it with Excel.Application)

wxAutomationObject::~wxAutomationObject()
{
     if (m_dispatchPtr)
     {
         ((IDispatch*)m_dispatchPtr)->Release(); <--- Crashes here
         m_dispatchPtr = NULL;
     }
}

The stack trace:

      ole32.dll!DcomChannelSetHResult()  + 0xa9f bytes
      [Frames below may be incorrect and/or missing, no symbols loaded 
for ole32.dll]
      ole32.dll!StringFromCLSID()  + 0x2e7 bytes
      ole32.dll!StringFromCLSID()  + 0x2c9 bytes
      ole32.dll!StringFromCLSID()  + 0x215 bytes
      ole32.dll!StringFromCLSID()  + 0x38f bytes
      rpcrt4.dll!IUnknown_Release_Proxy()  + 0x11 bytes
 >    wxJS_gui.dll!wxAutomationObject::~wxAutomationObject()  Line 72 + 
0x16 bytes    C++


Any idea what's wrong?

Franky
wxMSW, v 2.7






More information about the wx-users mailing list