Access Violation when CADImage.dll Loads
Posted: 26 May 2006, 03:56
Hello -
I am using the evaluation version of the CADImage.dll with a native (not .NET) C++ project in Visual Studio 2003. In a small test project, I was able to get the DLL to load and operate without any problems. I then moved my code to a larger project where I would like to implement the functionality, and have a problem.
The problem is that the CADImage DLL is producing an enless loop of Access Violations during the time the DLL is being loaded by the OS (when its DLL_Main() is being called). I am statically linked to the CADImage.lib file. At the time of the access violation 0xC0000005 the call stack looks like this:
> ntdll.dll!7c918fea()
ntdll.dll!7c90fb6c()
ntdll.dll!7c919aeb()
ntdll.dll!7c919ba0()
kernel32.dll!7c80ac66()
kernel32.dll!7c80ac78()
ntdll.dll!7c90104b()
GdiPlus.dll!4ec76989()
CADImage.dll!5001c528()
CADImage.dll!4ffb493f()
CADImage.dll!4ffb4a2c()
CADImage.dll!4ffb7245()
CADImage.dll!5009f5c0()
ntdll.dll!7c9011a7()
ntdll.dll!7c91cbab()
ntdll.dll!7c91d6d2()
ntdll.dll!7c91d9cb()
ntdll.dll!7c90e027()
ntdll.dll!7c9232c8()
ntdll.dll!7c91056d()
kernel32.dll!7c8172f8()
ntdll.dll!7c92173e()
ntdll.dll!7c914481()
ntdll.dll!7c921639()
ntdll.dll!7c91a120()
ntdll.dll!7c922c66()
ntdll.dll!7c90eac7()
ntdll.dll!7c915b4f()
This same error occurrs in both a debug build and release build of my application. If I ignore the exception, another follows in a slightly different location, then the endless loop of exceptions at the same address like this:
> CADImage.dll!4ffb3ea2()
CADImage.dll!4ffb4699()
CADImage.dll!4ffb48ec()
ntdll.dll!7c9037bf()
ntdll.dll!7c90378b()
ntdll.dll!7c937860()
ntdll.dll!7c96e0f0()
ntdll.dll!7c96e0d4()
ntdll.dll!7c9037bf()
ntdll.dll!7c90eafa()
No actual code in my application has executed yet, so the exception must be occurring during the DLL load. Has anyone seen this problem before? Any ideas how I can fix or get around it ?
Thank you !!!!!!!!!!

I am using the evaluation version of the CADImage.dll with a native (not .NET) C++ project in Visual Studio 2003. In a small test project, I was able to get the DLL to load and operate without any problems. I then moved my code to a larger project where I would like to implement the functionality, and have a problem.
The problem is that the CADImage DLL is producing an enless loop of Access Violations during the time the DLL is being loaded by the OS (when its DLL_Main() is being called). I am statically linked to the CADImage.lib file. At the time of the access violation 0xC0000005 the call stack looks like this:
> ntdll.dll!7c918fea()
ntdll.dll!7c90fb6c()
ntdll.dll!7c919aeb()
ntdll.dll!7c919ba0()
kernel32.dll!7c80ac66()
kernel32.dll!7c80ac78()
ntdll.dll!7c90104b()
GdiPlus.dll!4ec76989()
CADImage.dll!5001c528()
CADImage.dll!4ffb493f()
CADImage.dll!4ffb4a2c()
CADImage.dll!4ffb7245()
CADImage.dll!5009f5c0()
ntdll.dll!7c9011a7()
ntdll.dll!7c91cbab()
ntdll.dll!7c91d6d2()
ntdll.dll!7c91d9cb()
ntdll.dll!7c90e027()
ntdll.dll!7c9232c8()
ntdll.dll!7c91056d()
kernel32.dll!7c8172f8()
ntdll.dll!7c92173e()
ntdll.dll!7c914481()
ntdll.dll!7c921639()
ntdll.dll!7c91a120()
ntdll.dll!7c922c66()
ntdll.dll!7c90eac7()
ntdll.dll!7c915b4f()
This same error occurrs in both a debug build and release build of my application. If I ignore the exception, another follows in a slightly different location, then the endless loop of exceptions at the same address like this:
> CADImage.dll!4ffb3ea2()
CADImage.dll!4ffb4699()
CADImage.dll!4ffb48ec()
ntdll.dll!7c9037bf()
ntdll.dll!7c90378b()
ntdll.dll!7c937860()
ntdll.dll!7c96e0f0()
ntdll.dll!7c96e0d4()
ntdll.dll!7c9037bf()
ntdll.dll!7c90eafa()
No actual code in my application has executed yet, so the exception must be occurring during the DLL load. Has anyone seen this problem before? Any ideas how I can fix or get around it ?
Thank you !!!!!!!!!!
