Re: How to get IErrorInfo from IDispatch call to VB6 component

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 03/02/04


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.
> 
> 


Relevant Pages

  • Re: error wince600 boot message after dowload PB6 OS to HW board
    ... I would suspect that you have a memory layout problem, either the bootloader is using memory that is clobbering the downloaded image in some way, or the memory layout in the config.bib is wrong. ... Old or invalid version stamp in kernel structures - starting clean! ... Exception 'Access Violation': Thread-Id=00410002, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: TidSMTP compent in a thread, in a package.
    ... > vertuas wrote: ... Where do you get the exception? ... Access violation at address 406E6E00 in module 'indy70.bpl'. ... Its Create in the Create constructor, it seams to be that the error is ...
    (comp.lang.pascal.delphi.misc)
  • Re: Where do you go after FinalRelease?
    ... Your destructor executes right after FinalRelease. ... Set the exception for Access Violation to break into the ... Microsoft MVP, MCSD ... This all happens OK but I am getting an "Access violation" ...
    (microsoft.public.win32.programmer.ole)
  • Re: Access violation before startup in debug mode
    ... I have an MFC application that will run in release mode, but in debug ... mode I get an access violation before the program starts. ... set Break on first chance exception ...
    (microsoft.public.vc.mfc)
  • Re: AV in rsaenh.dll
    ... is an issue with Permissions in a reg key, ... Exception Analysis * ... ExceptionAddress: 7c901016 ExceptionCode: c0000005 (Access violation) ... Robert Aldwinckle wrote: ...
    (microsoft.public.windowsupdate)