ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Allocates memory from MSVCR100D.DLL, but AutoCAD uses memory from MSVCR100.DLL.

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
martin.miller
912 Views, 6 Replies

Allocates memory from MSVCR100D.DLL, but AutoCAD uses memory from MSVCR100.DLL.

Hello group,

 

I am updating about a dozen arx applications for ACAD2013 using VS2010. I have successfully updated all but one. The complier settings are the same for all projects but the troublesome one generates the error shown in the subject when loaded. I have tried to force the use of the non "D" library and the linker is set to use /MD not /MDd. A curious thing happens during the compile process, a few source files are compiled then a new cl.exe line shows up and the rest of the source files are compiled. I suppose that could just be the multiprocessing mechanism. Build log attched.

 

Thanks in advance

 

Martin Miler

Mayers and Associates Civil Engeering, Inc.

6 REPLIES 6
Message 2 of 7
owenwengerd
in reply to: martin.miller

How did you try to force use of the release library?

--
Owen Wengerd
ManuSoft
Message 3 of 7

Property page Linker->Command Line->Additional Options: /DEFAULTLIB:"MSVCRT"

Message 4 of 7
owenwengerd
in reply to: martin.miller

You need to use /NODEFAULTLIB:MSVCRTD.

--
Owen Wengerd
ManuSoft
Message 5 of 7
martin.miller
in reply to: owenwengerd

That got it load without AutoCAD complaining, however none of the dialogs will start. I'll keep digging. Thanks for your help Owen, here and throughout this group.

 

MM

Message 6 of 7
owenwengerd
in reply to: martin.miller

Whatever is pulling in the debug library still needs to be addressed. I would use the /verbose linker option to see where it's coming from. Thanks for the kind words.

--
Owen Wengerd
ManuSoft
Message 7 of 7

Final Resolution:

 

I created a new project from an MFC sample and copied in my existing code.

 

MM

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost