Re: Where do you go after FinalRelease?



Your destructor executes right after FinalRelease. It in turn
invokes the destructors of all member variables and base
classes.

Set the exception for Access Violation to break into the
debugger when thrown. This will give you the exact place
where the exception occurs.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Dave" <dave5398@xxxxxxxxxxxxxx> wrote in message
news:etPqW9N0GHA.4264@xxxxxxxxxxxxxxxxxxxxxxx
I carry out a cleanup in FinalRelease() such as deleting all heap allocated
memory etc. This all happens OK but I am getting an "Access violation"
AFTER this point and I have no idea where to look to debug it. Can someone
please help?

Dave



.



Relevant Pages

  • Re: How to get IErrorInfo from IDispatch call to VB6 component
    ... check the debug output window when the exception occurs. ... Access Violation. ... Microsoft MVP, MCSD ... > error handler in my VB function, which I would expect to then generate an ...
    (microsoft.public.vc.atl)
  • Re: Access violation 0051207e
    ... Is that perhaps an exception number? ... Access violation has ... Alexander Nickolov ... Microsoft MVP, MCSD ...
    (microsoft.public.win32.programmer.ole)
  • 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: 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)