How to Fix this assertion error during Debugging

VishalK_94 0 Reputation points
2023-05-26T07:08:33.4966667+00:00

<process started at 12:29:35.423 has terminated with 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)>

Faulting application name: SomeApp.exe, version: 6.0.2.14010, time stamp: 0x64702d79

Faulting module name: ImplementedMod.dll, version: 0.0.0.0, time stamp: 0x64705057

Exception code: 0xc0000005

Fault offset: 0x00005f9d

Faulting process id: 0x5384

Faulting application start time: 0x01d98f9b7d16eaff

Faulting application path: C:\Program Files (x86)\SomeAppFolder\Bin\SomeApp.exe

Faulting module path: C:\Program Files (x86)\SomeAppFolder\Bin\ImplementedMod.dll

Report Id: 0494ef39-e181-4c4b-9bf9-793acae07673

The above details are extracted from EventViewr.exe during application crash.

Here during configuring the ImplementedMod.dll the application crashes, how to find root cause and overcome this error.

System Details:

Windows 10 o/s 64 bit,

VS 2017 Prof. Ed IDE

Sql server 2019

Languages GUI : MFC, VC++ (2011) Desktop based app.

Regards,

VishalK_94

Community Center Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 49,461 Reputation points
    2023-05-26T07:18:30.9366667+00:00

    @VishalK_94, There are several possible causes of access violations which are invalid attempts to access memory. For example, a null pointer could be dereferenced, an attempt to read using an invalid memory address (bad pointer value) or an attempt to write to read-only memory.

    The first step is to create a debug build of the application and its DLLs and execute them under the debugger. This should enable you to identify the point at which the access violation manifests. You will then need to use the debugger to identify the cause of the error which results in the access violation.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.