Access Violation when CADImage.dll Loads

Discuss and ask questions about CAD DLL (CAD Image DLL, CAD Importer DLL).

Moderators: SDS, support, admin

Post Reply
andyfanton
Posts: 2
Joined: 26 May 2006, 03:39
Location: USA
Contact:

Access Violation when CADImage.dll Loads

Post by andyfanton » 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 !!!!!!!!!!

:)

support
Posts: 3254
Joined: 30 Mar 2005, 11:36
Contact:

Post by support » 26 May 2006, 13:44

Hello,

If possible, please send us your project for testing (we need only that part where CADImage.DLL is used).

Sergey.

please post questions to the forum or write to support@cadsofttools.com

andyfanton
Posts: 2
Joined: 26 May 2006, 03:39
Location: USA
Contact:

Post by andyfanton » 26 May 2006, 20:42

I have sent a simple test project to support@cadsofttools.com so you can see the problem. After more investigation, I determined that the CADImage.dll will crash upon loading if it is statically linked in a project that is also statically linked to GDIPlus.dll, AND the CADImage DLL gets loaded before the GDIPlus dll does. Tweaking the settings so that the GDIPlus dll loads BEFORE the CADImage DLL causes the problem to go away, and CADImage loads without the access violations.

Please let me know if you are able to fix this problem. I have the load-order as a temporary work-around for now, but would like to see this problem fixed before I purchase a license for CADImage.dll.

Thank you,
Andy Fanton

:)

Evgeny
Posts: 115
Joined: 16 Mar 2004, 11:04
Location: Russia

Post by Evgeny » 31 May 2006, 17:31

Hello Andy,

Demo with CAD Image DLL is sent to you by e-mail.

Kind regards,
Evgeny

Post Reply