• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1313
  • Last Modified:

Unhandled exception at 0x7c901230

     ntdll.dll!_DbgBreakPoint@0()       
       vrfcore.dll!00363537()       
       ntdll.dll!_RtlpTraceDatabaseReleaseLock@4()  + 0x15      
       ntdll.dll!_RtlTraceDatabaseAdd@16()  + 0x29      
       ntdll.dll!_RtlGetProcessHeaps@8()  + 0x42      

This is the stack trace.  I get this unhandled exception before the program even starts.  The program is a test program that calls a dll.  I've included this dll in other applications and it fails as well.  If I run this in release mode it works fine.... Any ideas??
0
cophi
Asked:
cophi
  • 3
  • 2
  • 2
1 Solution
 
cophiAuthor Commented:
More info.....

First-chance exception at 0x7c910370 (ntdll.dll) in Program.exe: 0xC0000005: Access violation reading location 0x02091000.


=======================================
VERIFIER STOP 00000013 : pid 0x9D4: First chance access violation for current stack trace.

      02091000 : Invalid address causing the exception.
      7C80A33E : Code address executing the invalid access.
      0012F314 : Exception record.
      0012F330 : Context record.
0
 
e_tadeuCommented:
Do you have the DLL source? Try to debug when it crashes and paste here the offending source lines.
0
 
cophiAuthor Commented:
Yes I have the dll soucre not ntdll.dll tho but I don't have any debug lines.  I've put breakpoints everywhere in teh code and it doesn't every execute.  Its like its trying to load ntdll.dll and it crashes.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jkrCommented:
This seems to be the same issue as in your other Q at  http://www.experts-exchange.com/Programming/Programming_Languages/Cplusplus/Q_21870991.html - why don't you continue there? Duplicate Qs aren't allowed on EE, BTW.
0
 
cophiAuthor Commented:
Well its not exactly the same question, these are two different errors I'm getting.  This one with the above stack trace and the other one with its stack trace.  Two different spots.  I posted this question because this stack trace doesn't even include any call from my program.  I don't understand how its 'blowing' up before its even calling anything.
0
 
e_tadeuCommented:
It's probably the DLL initialization code (i.e, initialization of stack vars., etc.)
0
 
jkrCommented:
Ah, I see. BTW:

>> First chance access violation for current stack trace.

That indicates a First Chance exception - nothing to worry about, actually.

'First-chance exception in xxx...' just means that a function from within the 'xxx' caused an access-violation exception that was handled successfully inside the SEH frame that was active when the exception occurred. You can think of it being the same as if you use code like this:

long l;

__try // set up current SEH frame
{
CopyMemory ( &l, 0, sizeof ( long)); // read from 0x00000000
}
__except( EXCEPTION_EXECUTE_HANDLER) // handler for current frame
{
puts ( "We knew that this would go wrong...");
}

So let's hope that the MS progrmmer knew what they were doing ;-)

(Additional info: MS KB Article Q105675)


The article can be found at http://support.microsoft.com/support/kb/articles/q105/6/75.asp 

A first chance exception is called so as it is passed to a debugger before the application 'sees' it. This is done by sending a 'EXCEPTION_DEBUG_EVENT' to the debugger, which can now decide whether it is passed to the apllication to handle it or 'ignore' it (e.g. like an 'EXCEPTION_BREAKPOINT' aka 'int 3'). If the exception isn't handled, it becomes a '2nd chance' exception, the debugger 'sees' it the 2nd time and will usually terminate the program (without using a debugger, these exceptions end up at 'UnhandledExceptionFilter()' which will also signal the exception to the user with one of these 'nice' message boxes and terminate the program, also...)


In short: This message is only generated by a debugger & you can safely ignore it...
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now