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

Warning message refering allocation memory

2 REPLIES 2
Reply
Message 1 of 3
cracksther
305 Views, 2 Replies

Warning message refering allocation memory

The AutoCAD 2008 is showing the message¹ after load my program (.arx) with the command: arx->load.

Message¹:
Warning: D:\Marcelo\programação\ObjectARX C++\minimumApp\Debug\minimumApp.arx
allocates memory from MSVCR80D.DLL, but AutoCAD uses memory from MSVCR80.DLL.
This may cause problems.

How modify, to allocate memory from the MSVCR80.DLL?

I am using Visual C++ 2005 Express Editon.

This occur even with the minimum code:

#include "rxregsvc.h"
//Entry Point
extern "C" AcRx::AppRetCode acrxEntryPoint (AcRx::AppMsgCode msg, void* appId)
{
switch(msg){
case AcRx::kInitAppMsg:
acrxUnlockApplication(appId);
acrxRegisterAppMDIAware(appId);
break;
}
//
return AcRx::kRetOK;
}

Thanks advanced.

--
Marcelo Silva - Brasil
cracksther@gmail.com Edited by: cracksther on Mar 5, 2009 4:16 PM
2 REPLIES 2
Message 2 of 3
zazy
in reply to: cracksther

Hi Maccelo,

maybe you are compiling with the debug version of the MFC libraries. You can check the project configuration properties and see what you have set in C/C++ -> Code Building -> Runtime Library. Here you have to set the value "DLL Multithread (/MD)" either for the debug that for the release configuration. This is because Autocad use only the release version of MFC.

Please note that i've translated from Italian version of VC++ and i don't know how entries are named in your language.
Let us know if it worked.

Peace

ZaZy
Message 3 of 3
cracksther
in reply to: cracksther

Hi ZaZy,

Exact, now is loading do not warning message.

Thank you.

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

Post to forums  

Autodesk Design & Make Report

”Boost