locked
IE9 RC crashes when calling IDispatch::Invoke RRS feed

  • Question

  • Hello,

    I have a working code that is working on IE6,7,8,9 Beta .
    I can see that the web page is using the activeX's interface successfully but when I try to call Invoke from the activeX , the activeX crashes.

    Were there any changes in that area?
    Thanks

    N.B. My application is running in CHtmlView and uses an ActiveX.

     

    Sunday, February 13, 2011 2:55 PM

Answers

  • No problem,

    https://connect.microsoft.com/IE/feedback/details/643966/ie9-rc-crashes-when-calling-idispatch-invoke.

    • Marked as answer by Yi Feng Li Friday, February 18, 2011 6:33 AM
    Tuesday, February 15, 2011 9:39 AM

All replies

  • what is the call stack at the time of crashing?

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Monday, February 14, 2011 4:14 PM
  • Thank you!

    Here it is:

    The specific call stack is from a debug I made the code here is:

    unsigned int iTmp = 0;
    HRESULT hresult = i_pdisp->GetTypeInfoCount( 
    		&iTmp 
    		);
    Call stack:

     	jscript9.dll!6bb97373() 	
     	[Frames below may be incorrect and/or missing, no symbols loaded for
    
     jscript9.dll]	
    >	REI_AxControl.dll!REI_EngineCallback::call(const
    
     std::basic_string<wchar_t
    
    ,std::char_traits<wchar_t
    
    >,std::allocator<wchar_t
    
    > > & i_sName="setMultiOSDone"
    
    , const
    
     ATL::CComVariant & i_cValue={...}, bool
    
     i_bForceUpdate=false
    
    ) Line 51 + 0x1e bytes	C++
     	REI_AxControl.dll!REI_EngineNode::notifyChange(bool
    
     i_bForceUpdate=false
    
    ) Line 130 + 0x30 bytes	C++
     	REI_AxControl.dll!REI_EngineNode::setValue(const
    
     ATL::CComVariant & i_cValue={...}, bool
    
     i_bForceUpdate=false
    
    ) Line 116	C++
     	REI_AxControl.dll!REI_EngineNode::setSubValue(const
    
     std::basic_string<wchar_t
    
    ,std::char_traits<wchar_t
    
    >,std::allocator<wchar_t
    
    > > & i_sValuePath="setMultiOSDone"
    
    , const
    
     ATL::CComVariant & i_cValue={...}, bool
    
     i_bForceUpdate=false
    
    ) Line 109	C++
     	REI_AxControl.dll!CReiEngine::_setValueV(const
    
     wchar_t
    
     * i_psValuePath=0x02a29e44, const
    
     ATL::CComVariant & i_cValue={...}, bool
    
     i_bForceUpdate=false
    
    ) Line 435 + 0x2d bytes	C++
     	REI_AxControl.dll!CReiEngine::_setValue(const
    
     wchar_t
    
     * i_psValuePath=0x02a29e44, const
    
     wchar_t
    
     * i_psValue=0x02a205f8, bool
    
     i_bForceUpdate=false
    
    ) Line 405 + 0x2d bytes	C++
     	REI_AxControl.dll!REI_GUIConnection::setValue(const
    
     wchar_t
    
     * i_psValuePath=0x02a29e44, const
    
     wchar_t
    
     * i_psValue=0x02a205f8, bool
    
     i_bForceUpdate=false
    
    ) Line 55 + 0x20 bytes	C++
     	REI_AxControl.dll!setBootCD(bool
    
     & m_bIsBootCD=false
    
    , ATL::CStringT<wchar_t
    
    ,StrTraitMFC<wchar_t
    
    ,ATL::ChTraitsCRT<wchar_t
    
    > > > & m_cOSPath=""
    
    ) Line 4956 + 0x11 bytes	C++
     	REI_AxControl.dll!CReiEngine::setMultiOS() Line 1486 + 0x13 bytes	C++
     	oleaut32.dll!77d23e75() 	
     	oleaut32.dll!77d23cef() 	
     	mshtml.dll!69131796() 	
     	urlmon.dll!761b36b5() 	
     	mshtml.dll!691bead7() 	
     	mshtml.dll!690cfdc3() 	
     	mshtml.dll!690d0100() 	
     	REI_AxControl.dll!ATL::CComTypeInfoHolder::Invoke(IDispatch * p=0x02efb388, long
    
     dispidMember=26, const
    
     _GUID & __formal={...}, unsigned
    
     long
    
     lcid=1, unsigned
    
     short
    
     wFlags=1, tagDISPPARAMS * pdispparams=0x0012f6e0, tagVARIANT * pvarResult=Empty, tagEXCEPINFO * pexcepinfo=0x0012f6a0, unsigned
    
     int
    
     * puArgErr=0x00000000) Line 3766 + 0x33 bytes	C++
     	REI_AxControl.dll!ATL::IDispatchImpl<IReiEngine,&IID_IReiEngine,&LIBID_REI_AxControlLib,1,0,ATL::CComTypeInfoHolder>::Invoke(long
    
     dispidMember=26, const
    
     _GUID & riid={...}, unsigned
    
     long
    
     lcid=1, unsigned
    
     short
    
     wFlags=1, tagDISPPARAMS * pdispparams=0x0012f6e0, tagVARIANT * pvarResult=Empty, tagEXCEPINFO * pexcepinfo=0x0012f6a0, unsigned
    
     int
    
     * puArgErr=0x00000000) Line 4624	C++
     	mshtml.dll!68fbfb2d() 	
     	mshtml.dll!68ee218a() 	
     	mshtml.dll!68ee2111() 	
     	mshtml.dll!68f4d9cb() 	
     	mshtml.dll!69102f72() 	
     	jscript9.dll!6baa85dc() 	
     	jscript9.dll!6baa979b() 	
     	jscript9.dll!6baa96ee() 	
     	jscript9.dll!6ba7c63a() 	
     	jscript9.dll!6ba7b920() 	
     	jscript9.dll!6baa9515() 	
     	jscript9.dll!6baa94ea() 	
     	jscript9.dll!6ba7b8ad() 	
     	jscript9.dll!6babeb41() 	
     	jscript9.dll!6babeb7d() 	
     	jscript9.dll!6baff0bf() 	
     	jscript9.dll!6baff0bf() 	
     	jscript9.dll!6baff034() 	
     	jscript9.dll!6bafefca() 	
     	jscript9.dll!6ba7b8ad() 	
     	jscript9.dll!6ba7b7cf() 	
     	jscript9.dll!6ba7b707() 	
     	jscript9.dll!6ba7b707() 	
     	jscript9.dll!6ba7b690() 	
     	jscript9.dll!6ba7bb6a() 	
     	jscript9.dll!6ba7b591() 	
     	jscript9.dll!6ba7c2f6() 	
     	mshtml.dll!68f310d5() 	
     	mshtml.dll!68f30ed6() 	
     	mshtml.dll!69112f96() 	
     	mshtml.dll!691928fc() 	
     	mshtml.dll!68f32b69() 	
     	mshtml.dll!691a9ba9() 	
     	mshtml.dll!691a9b52() 	
     	user32.dll!776b86ef() 	
     	user32.dll!776b8876() 	
     	user32.dll!776b881f() 	
     	ntdll.dll!77bc3485() 	
     	user32.dll!776b43cf() 	
     	user32.dll!776b43f5() 	
     	Reimage.exe!004217df() 	
     	user32.dll!776b83e0() 	
     	user32.dll!776b86ef() 	
     	user32.dll!776b8876() 	
     	user32.dll!776b881f() 	
     	user32.dll!776b89b5() 	
     	Reimage.exe!004244f1() 	
     	user32.dll!776b8e9c() 	
     	Reimage.exe!00428e98() 	
     	Reimage.exe!00428bcb() 	
     	Reimage.exe!005428ac() 	
     	Reimage.exe!004464df() 	
     	kernel32.dll!76411194() 	
     	ntdll.dll!77bcb429() 	
     	ntdll.dll!77bcb3fc() 	
    
    

    I will reproduce the normal crash and send it too.

    Monday, February 14, 2011 4:21 PM
  • Hi the previous reply was with a debug code.

    This is the normal code that crashes

    m_spDisp->Invoke(
    		DISPID(0),
    		IID_NULL,
    		LANG_NEUTRAL,
    		DISPATCH_METHOD,
    		&dp,
    		NULL,
    		NULL,
    		NULL
    

    I build DISPPARAMS without any named args.

     

    here is the call stack for the normal code,

     

         jscript9.dll!6b68b420()    
         [Frames below may be incorrect and/or missing, no symbols loaded for jscript9.dll]   
         jscript9.dll!6b68c2f6()    
    >    REI_AxControl.dll!REI_CallbackItem::call()  Line 200 + 0x2b bytes    C++
         REI_AxControl.dll!REI_CallbackWindow::OnCallback(unsigned int uMsg=1124, unsigned int wParam=51133344, long lParam=0, int & bHandled=1)  Line 68    C++
         REI_AxControl.dll!REI_CallbackWindow::ProcessWindowMessage(HWND__ * hWnd=0x001702a2, unsigned int uMsg=1124, unsigned int wParam=51133344, long lParam=0, long & lResult=-858993460, unsigned long dwMsgMapID=0)  Line 90 + 0x28 bytes    C++
         REI_AxControl.dll!ATL::CWindowImplBaseT<ATL::CWindow,ATL::CWinTraits<1442840576,0> >::WindowProc(HWND__ * hWnd=0x0309b4b8, unsigned int uMsg=1124, unsigned int wParam=51133344, long lParam=0)  Line 3073 + 0x27 bytes    C++
         user32.dll!776b86ef()    
         user32.dll!776b8876()    
         user32.dll!776b881f()    
         user32.dll!776b89b5()    
         Reimage.exe!004244f1()    
         user32.dll!776b8e9c()    
         Reimage.exe!00428e98()    
         Reimage.exe!00428bcb()    
         Reimage.exe!005428ac()    
         Reimage.exe!004464df()    
         kernel32.dll!76411194()    
         ntdll.dll!77bcb429()    
         ntdll.dll!77bcb3fc()

    Thank you!

    Monday, February 14, 2011 4:37 PM
  • I don't think the debug symbols of jscript9.dll is available yet. Did you send a feedback to the IE team on connect.microsoft.com/IE, preferably with a crash dump file?

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Monday, February 14, 2011 5:52 PM
  • Thank you very much,

    Alas there are no dump files, I will send a feedback to the IE team.

    Monday, February 14, 2011 7:13 PM
  • HI ManicQin,

    Thank you for using IE9 RC.

    Could You post a link to your connect site here after submitting to connect, so that anyone interested from this thread can easily follow up on it.

    Cheers,

    Yi


    Yi Feng Li [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, February 15, 2011 9:33 AM
  • No problem,

    https://connect.microsoft.com/IE/feedback/details/643966/ie9-rc-crashes-when-calling-idispatch-invoke.

    • Marked as answer by Yi Feng Li Friday, February 18, 2011 6:33 AM
    Tuesday, February 15, 2011 9:39 AM