How to diagnose access violation on application exit

I have an application in which I am trying to debug a crash. However, it is difficult to detect the problem for several reasons:

  • A crash occurs at shutdown, which means the violation code is not on the stack
  • Failure occurs only in build versions, i.e. characters are not available

As a result of the accident, I mean the following exception:

0xC0000005: Access violation reading location 0x00000000.

What strategy would you use to diagnose this problem?

What I have done so far is to remove as much code as possible from my program until I get the minimum minimum that will crash. This seems to be happening in code that is statically linked to the project, so that doesn't help either.

+3
source share
3

. , , , .

+5

, , -, - .

, . Linux valgrind.

, ?

? ?

+1

, , - , . , , ​​ .

, . , - AIX , Windows, .

, , atexit, .

, , atexit , .

main(), , , . C RTL atexit , .

, main(), .

, ( ): . , , , .

+1

All Articles