Access violation error when running the application

I’m getting access violation error with below log file ,how to resolve it step by step.
Exception occurred at address 01022AA9
Exception code C0000005: Access Violation
Process PID=19320 Image: C:\KeyProj\Clarion8\Municipal\run\kf80.exe
Thread 1 Handle=00000244 TID=14864

Exception parameters:
00000000
00000070

EAX=00000000 EBX=00000001 ECX=0112F148 EDX=00458100
ESI=03630ED8 EDI=0019FE2F EBP=0019FEC4 ESP=0019FDCC
EIP=01022AA9 FLG=00010246

Call Stack:
01022AA9
010BDA03
76F2839E
76F2836E

Clarion modules:
01000000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\ClaRUN.dll
00A70000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\ClaDOS.dll
04A00000 08.00:9661 C:\KeyProj\Clarion8\Municipal\run\ClaIP.dll
13000000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\CLAnet.dll
04800000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\cwhhla.dll
00EE0000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\ClaBAS.dll
00F00000 07.03:7900 C:\KeyProj\Clarion8\Municipal\run\claelp.dll
00F30000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\ClaOLE.dll
01D20000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\ClaASC.dll
00FE0000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\ClaTPS.dll
01A80000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\CYBER80.dll
00F50000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\ELPSETUP.dll
01B40000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\KFMAIL80.dll
01CD0000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\ClaDB3.dll
01C80000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\ClaMSS.dll
05C00000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\TC80QWX.dll
01540000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\MTFILE80.dll
01180000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\KFGBL80.dll
00400000 08.00:9759 C:\KeyProj\Clarion8\Municipal\run\kf80.exe

Thread stack:
0019FDC0: 00 81 45 00 48 F1 12 01 9C 2A 02 01 2F FE 19 00
0019FDD0: 00 00 00 00 C4 FE 19 00 EC FD 19 00 D8 0E 63 03
0019FDE0: 00 81 45 00 08 81 45 00 2F FE 19 00 00 FE 19 00
0019FDF0: 01 00 00 00 2F FE 19 00 50 2A 00 08 64 3E 00 08
0019FE00: 00 00 00 00 0F E4 01 01 00 00 00 00 64 F1 42 00
0019FE10: C4 FE 19 00 28 FE 19 00 08 81 45 00 D8 0E 63 03
0019FE20: 00 00 00 00 D8 0E 63 03 64 F1 42 08 81 45 00 BC
0019FE30: FB 12 01 00 00 00 00 00 FF FF FF 01 50 2A 00 08
0019FE40: 64 3E 00 08 E2 B9 01 01 0C 83 42 00 17 FF 19 00
0019FE50: DB 7E 42 00 00 00 00 00 48 E8 42 00 C4 FE 19 00
0019FE60: 74 FE 19 00 A8 EC 42 00 0C 83 42 00 17 FF 19 00
0019FE70: 64 F1 42 00 1B 1F 40 00 C7 DB 0B 01 CC FF 19 00
0019FE80: 03 DA 0B 01 C4 FE 19 00 9C FE 19 00 13 4A 13 01
0019FE90: 0C 83 42 00 17 FF 19 00 0C 83 42 00 00 50 02 05
0019FEA0: 00 00 00 0C 83 42 00 13 00 00 00 13 2A DA 0B 01
0019FEB0: BC 4A 13 01 2A 6F 11 01 17 FF 19 00 DC F2 19 00
0019FEC0: 2C F3 19 00 80 FF 19 00 03 DA 0B 01 CC FF 19 00
0019FED0: CC FF 19 00 45 6F 11 01 17 FF 19 00 17 FF 19 00
0019FEE0: 08 DB 0B 01 38 96 AE 00 03 DA 0B 01 17 FF 19 00
0019FEF0: 5C ED 42 00 0C 83 42 00 80 FF 19 00 10 FF 19 00
0019FF00: 01 00 00 00 20 B9 45 00 00 70 45 00 0C 83 42 00
0019FF10: FF 3D 0B 17 FF 19 00 BC 4A 13 01 BC FE 19 00 04
0019FF20: 00 00 00 3C 4B 13 01 38 96 AE 00 78 93 12 01 8C
0019FF30: 93 12 01 A8 93 12 01 9C 93 12 01 C4 93 12 01 B8
0019FF40: 93 12 01 00 00 00 00 08 DB 0B 01 0C 83 42 00 13
0019FF50: 7C D6 0B 01 58 1E 40 00 58 1E 40 00 58 1E 40 00
0019FF60: 00 00 00 00 0C 83 42 00 01 00 00 00 5C ED 42 00
0019FF70: 68 1E 40 00 C9 FC 02 75 00 40 2D 00 B0 FC 02 75

0019FF80: DC FF 19 00 9E 83 F2 76 00 40 2D 00 C9 71 B4 C2
0019FF90: 00 00 00 00 00 00 00 00 00 40 2D 00 00 00 00 00
0019FFA0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0019FFB0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0019FFC0: 00 00 00 00 8C FF 19 00 00 00 00 00 E4 FF 19 00
0019FFD0: 60 B6 F3 76 8D 45 51 B4 00 00 00 00 EC FF 19 00
0019FFE0: 6E 83 F2 76 FF FF FF FF 4D 95 F4 76 00 00 00 00
0019FFF0: 00 00 00 00 58 1E 40 00 00 40 2D 00 00 00 00 00

TLDR Check your parameter definitions in procedure prototypes in Win32 API calls. These are normally the cause.

Error C0000005 is a Windows Access Violation indicating a program attempted to read/write memory it does not have permission to access. It is frequently caused by buggy software, corrupted system files, faulty RAM, or DEP (Data Execution Prevention). Common solutions include updating drivers, running programs as administrator, and verifying game/application files.

1 Like

Make sure you use the debug runtime dll and also check you have compiled all your code in debug mode. You should then be able to see exactly where your code is crashing.

2 Likes

This is often DLL mismatch.
ie You’re running Clarion 8 and have DLLs from C7 or something.
Or if it’s a multi DLL you haven’t recompiled the whole solution and some stuff is out of whack.

Along with what Sean writes, questions to ask yourself:

Did it ever run correctly?
When was it last working?
When did it stop working?
Did I change anything?

And follow the link vitesse posted to explain about getting better GPF debug information.

Hi Jane
The problem started when i installed NetTalk14 apps.
I’m able to build whole solution but when i’m running the main app im getting issue.
Could you guide me how to fix this error step by step.
Thanks

If you’ve only just installed nettalk, make sure the global is in every app that uses any code from it.
Failure to do that can cause a GPF I discovered.