Click here to Skip to main content
15,944,136 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
While registering one DLL developed in VC++ 10.0 on WinXP, I am getting following error (detected thru Dependency Walker profiler) :
First chance exception 0xC0000005 (Access Violation) occurred in "c:\windows\system32\NTDLL.DLL".

This is despite NT DLL having got hooked successfully.

What can be the reason? How to find out the cause?
Posted
Updated 17-Dec-10 5:05am
v3
Comments
Abdul Quader Mamun 17-Dec-10 11:05am    
Edited for better reading.
Dave Kreskowiak 17-Dec-10 11:28am    
Hooked? What do you mean by "hooked NTDLL.DLL"??
Richard MacCutchan 17-Dec-10 11:37am    
Are you saying this error occurred in RegSvr32, Dependency Waker or in an application that you wrote yourself?

That error usually indicates a screwed up pointer somewhere in your code. Sorry I can't be more specific, but it's been a while since I did any unmanaged C++ stuff.
 
Share this answer
 
Following is part of log of dependency walker profile :

VB
00:00:00.625: DllMain(0x10000000, DLL_PROCESS_ATTACH, 0x00000000) in "f:\clearcase\compomap_source\compomap_cvob\source\vs2010\debug\COMALGOVISIBILITY.DLL" returned 1 (0x1) by thread 1.
00:00:00.625: LoadLibraryExW("ComAlgoVisibility.dll", 0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) returned 0x10000000 by thread 1.
00:00:00.656: GetProcAddress(0x10000000 [f:\clearcase\compomap_source\compomap_cvob\source\vs2010\debug\COMALGOVISIBILITY.DLL], "DllRegisterServer") called from "c:\windows\system32\REGSVR32.EXE" at address 0x01001EA0 and returned 0x1001B54A by thread 1.
00:00:00.672: First chance exception 0xC0000005 (Access Violation) occurred in "c:\windows\system32\NTDLL.DLL" at address 0x7C91B21A by thread 1.


The reason for access violation is unknown.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900