Re: Access violation before startup in debug mode



Rob Richardson <CedricCicada@xxxxxxxxx> wrote:

I have an MFC application that will run in release mode, but in debug
mode I get an access violation before the program starts. The only
error message is "Unhandled exception in ModelTest.exe (NTDLL.DLL):
0xC0000005: Access Violation." It doesn't give me any indication of
where the instruction is that raised the error. I put breakpoints at
the top of my InitInstance() method and on the line containing the
opening brace of my application constructor class, and neither
breakpoint is hit.

Perhaps there are problems with wrong dll versions when linking
dynamically. I'd try both, dynamic and static linking to MFC to
compare the behaviors.

Hans
.



Relevant Pages

  • Cant debug Classic ASP In VS.NET 2005
    ... I don't get an error message (ie, breakpoints will not be hit), no ... I have my IIS application security set to medium (so I will attach to ... It is not hit. ...
    (microsoft.public.vsnet.debugging)
  • Re: Hotkey keyboard error on shutdown
    ... Robert L. Rauch wrote: ... > Access violation at address 00433396 ...
    (microsoft.public.windowsxp.general)
  • Re: Access violation before startup in debug mode
    ... I would expect your breakpoints to be ignored in release builds. ... I would start by writing some sort of log code and start strategically placing calls to this code until you can isolate where the error is occurring. ... mode I get an access violation before the program starts. ... running it in debug mode, it gives me an access violation ...
    (microsoft.public.vc.mfc)
  • Access violation
    ... I have this error message: "Access violation at address 011789D2 in ... occuring when I do compilation and it is not occuring all the time. ... a few who face messages of 'access violation'. ...
    (borland.public.delphi.ide)
  • Re: Help!! cannot clear breakpoints from Access VBA
    ... Probably the code is causing some sort of runtime error, ... error message would pop up. ... Or it could be the command stop which causes ... > There are no breakpoints in the program; ...
    (microsoft.public.access.formscoding)