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

Warning: mymodule.arx allocates memory from both MSVCR90.DLL and MSVCR90D.

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
1216 Views, 3 Replies

Warning: mymodule.arx allocates memory from both MSVCR90.DLL and MSVCR90D.

Anonymous
Not applicable
I am migrating some modules from AutoCAD 2007 (2008, 2009) to autocad 2010, and some modules show these message when loaded in debug mode.

Warning: mymodule.arx allocates memory from both
MSVCR90.DLL and MSVCR90D.DLL.

any particular reason fot them to start showing this just now? why was it ok in 2007?

thanks in advance
GD
0 Likes

Warning: mymodule.arx allocates memory from both MSVCR90.DLL and MSVCR90D.

I am migrating some modules from AutoCAD 2007 (2008, 2009) to autocad 2010, and some modules show these message when loaded in debug mode.

Warning: mymodule.arx allocates memory from both
MSVCR90.DLL and MSVCR90D.DLL.

any particular reason fot them to start showing this just now? why was it ok in 2007?

thanks in advance
GD
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
It looks like your project settings have changed, and your new project's
debug build is linking to the debug CRT library.
--
Owen Wengerd
President, ManuSoft <>
VP Americas, CADLock, Inc. <>


"dellagustin" wrote in message news:6388627@discussion.autodesk.com...
> I am migrating some modules from AutoCAD 2007 (2008, 2009) to autocad
> 2010, and some modules show these message when loaded in debug mode.
>
> Warning: mymodule.arx allocates memory from both
> MSVCR90.DLL and MSVCR90D.DLL.
>
> any particular reason fot them to start showing this just now? why was it
> ok in 2007?
>
> thanks in advance
> GD
0 Likes

It looks like your project settings have changed, and your new project's
debug build is linking to the debug CRT library.
--
Owen Wengerd
President, ManuSoft <>
VP Americas, CADLock, Inc. <>


"dellagustin" wrote in message news:6388627@discussion.autodesk.com...
> I am migrating some modules from AutoCAD 2007 (2008, 2009) to autocad
> 2010, and some modules show these message when loaded in debug mode.
>
> Warning: mymodule.arx allocates memory from both
> MSVCR90.DLL and MSVCR90D.DLL.
>
> any particular reason fot them to start showing this just now? why was it
> ok in 2007?
>
> thanks in advance
> GD
Message 3 of 4
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
thanks, I kind of had that in mind, fixed the problem already.
0 Likes

thanks, I kind of had that in mind, fixed the problem already.
Message 4 of 4
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
there was actually anoter problem involved, at DllMain, when I called:

@ Global Scope:
{code}
AC_IMPLEMENT_EXTENSION_MODULE(myExtensionModule);
{code}
@ DllMain:
{code}
myExtensionModule.AttachInstance(hInstance);
{code}

it launched an assertion, caused because afxCurrentResourceHandle == NULL.

These somehow was caused because of a little modification I made at sdtafx.h. You guys probably know these piece of code:


{code}
// FOR PROD AUTOACAD WITH DEBUG ARX
#if defined(_DEBUG) && !defined(_DEBUG_WAS_DEFINED)
#define _DEBUG_WAS_DEFINED
#undef _DEBUG
#endif

// some code here (...)

// FOR PROD AUTOACAD WITH DEBUG ARX
#ifdef _DEBUG_WAS_DEFINED
#define _DEBUG
#undef _DEBUG_WAS_DEFINED
#endif
{code}

It was generating these error:

d:\program files\microsoft visual studio 9.0\vc\include\use_ansi.h(49) : fatal error C1189: #error : You have included some C++/C library header files with _DEBUG defined and some with _DEBUG not defined. This will not work correctly. Please have _DEBUG set or clear consistently.


So I removed the code above, these generated the problem at the topic, and the one concearning AttachInstance.
So I put the code back and added #include "use_ansi.h"

{code}
// FOR PROD AUTOACAD WITH DEBUG ARX
#if defined(_DEBUG) && !defined(_DEBUG_WAS_DEFINED)
#define _DEBUG_WAS_DEFINED
#undef _DEBUG
#endif

// some code here (...)

// the solution to my problems
#include "use_ansi.h"

// FOR PROD AUTOACAD WITH DEBUG ARX
#ifdef _DEBUG_WAS_DEFINED
#define _DEBUG
#undef _DEBUG_WAS_DEFINED
#endif
{code}

These solved both problems. I do not know if it is the best solution, but it worked so far...
If somebody knows a more polite solution please tell me.
0 Likes

there was actually anoter problem involved, at DllMain, when I called:

@ Global Scope:
{code}
AC_IMPLEMENT_EXTENSION_MODULE(myExtensionModule);
{code}
@ DllMain:
{code}
myExtensionModule.AttachInstance(hInstance);
{code}

it launched an assertion, caused because afxCurrentResourceHandle == NULL.

These somehow was caused because of a little modification I made at sdtafx.h. You guys probably know these piece of code:


{code}
// FOR PROD AUTOACAD WITH DEBUG ARX
#if defined(_DEBUG) && !defined(_DEBUG_WAS_DEFINED)
#define _DEBUG_WAS_DEFINED
#undef _DEBUG
#endif

// some code here (...)

// FOR PROD AUTOACAD WITH DEBUG ARX
#ifdef _DEBUG_WAS_DEFINED
#define _DEBUG
#undef _DEBUG_WAS_DEFINED
#endif
{code}

It was generating these error:

d:\program files\microsoft visual studio 9.0\vc\include\use_ansi.h(49) : fatal error C1189: #error : You have included some C++/C library header files with _DEBUG defined and some with _DEBUG not defined. This will not work correctly. Please have _DEBUG set or clear consistently.


So I removed the code above, these generated the problem at the topic, and the one concearning AttachInstance.
So I put the code back and added #include "use_ansi.h"

{code}
// FOR PROD AUTOACAD WITH DEBUG ARX
#if defined(_DEBUG) && !defined(_DEBUG_WAS_DEFINED)
#define _DEBUG_WAS_DEFINED
#undef _DEBUG
#endif

// some code here (...)

// the solution to my problems
#include "use_ansi.h"

// FOR PROD AUTOACAD WITH DEBUG ARX
#ifdef _DEBUG_WAS_DEFINED
#define _DEBUG
#undef _DEBUG_WAS_DEFINED
#endif
{code}

These solved both problems. I do not know if it is the best solution, but it worked so far...
If somebody knows a more polite solution please tell me.

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report