Re: How to get IErrorInfo from IDispatch call to VB6 component
From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 03/02/04
- Next message: Alexander Nickolov: "Re: How to use ATL object in the same project where it is implemented?"
- Previous message: Brian Muth: "Re: How to use ATL object in the same project where it is implemented?"
- In reply to: Simon Trew: "Re: How to get IErrorInfo from IDispatch call to VB6 component"
- Next in thread: astanley: "Re: How to get IErrorInfo from IDispatch call to VB6 component"
- Reply: astanley: "Re: How to get IErrorInfo from IDispatch call to VB6 component"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Mar 2004 09:57:17 -0800
Also, check the debug output window when the exception occurs.
Most likely, you get a 0xC0000005 First Chance Execption - e.g.
Access Violation. If you set 0xC0000005 to Stop Always as Simon
suggested, you'll be able to see the (assembly) code where the
exception is thrown. Hopefully, you know x86 assembly and can
make sense of it...
-- ===================================== Alexander Nickolov Microsoft MVP [VC], MCSD email: agnickolov@mvps.org MVP VC FAQ: http://www.mvps.org/vcfaq ===================================== "Simon Trew" <ten.egnaro@werts> wrote in message news:ujKgawFAEHA.2056@TK2MSFTNGP11.phx.gbl... > Bummer... I didn't really expect the Invoke call to throw a _com_error (I > don't think it's wrapped), but just in case... > > Did you try putting "stop always" on C++ exceptions, and access violations > in the debugger? (Debug|Exceptions, kindly available only once you start > running a program, at least in VS6). > S. > > "astanley" <anonymous@discussions.microsoft.com> wrote in message > news:0A169F6F-EFE5-478C-8AFE-480BEEFAB620@microsoft.com... > > The EXCEPINFO is not populated. > > > > I do not know what type of exception is being thrown, except it is not > _com_error (I've tried catching that - no joy). > > > > The VB component is calling MSXML where the error is occurring. I suspect > MSXML is throwing an exception (SE/C++?). However, I have an "on error goto" > error handler in my VB function, which I would expect to then generate an > IErrorInfo exception. > >
- Next message: Alexander Nickolov: "Re: How to use ATL object in the same project where it is implemented?"
- Previous message: Brian Muth: "Re: How to use ATL object in the same project where it is implemented?"
- In reply to: Simon Trew: "Re: How to get IErrorInfo from IDispatch call to VB6 component"
- Next in thread: astanley: "Re: How to get IErrorInfo from IDispatch call to VB6 component"
- Reply: astanley: "Re: How to get IErrorInfo from IDispatch call to VB6 component"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|