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

AutoCAD 2013 custom object stack corruption (migrating from 2012)

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
421 Views, 6 Replies

AutoCAD 2013 custom object stack corruption (migrating from 2012)

Hello!

 

I have a problem with my custom object in AutoCAD 2013 and I haven't been able to track down the source of the problem yet.

 

In my custom object I get run-time check failures (stack corruption around a local variable) when trying to return to a calling method. I'm using ObjectARX with C++. The problem does not occur in AutoCAD 2012 and prior versions. Does anybody know or at least have a faint idea what changed in AutoCAD 2013 that might be causing this?

 

Any form of help will be appreciated.

6 REPLIES 6
Message 2 of 7
loic.jourdan
in reply to: Anonymous

simple guess

What is the type of your local variable?

It may crash in its destructor.

 

I hope it helps

----
20-20 CAD / 20-20 Technologies
Message 3 of 7
Anonymous
in reply to: loic.jourdan

Thank you for your answer.

I already looked into that, but that doesn't seem to be the problem.

What really confuses me is the fact that it only happens in 2013 and 2014, but not in the previous versions.

Message 4 of 7
kubitTilo
in reply to: Anonymous

Maybe you've messed up some project settings during migration to ObjectARX 2013 (and VC++10).

 

Have you already checked that you are linking against Multihreaded-DLL runtime and have not defined _DEBUG preprocessor symbol?




Tilo Pfliegner
Message 5 of 7
Anonymous
in reply to: kubitTilo

Thanks for your answer.

 

That's not the problem either, I checked 😞

Message 6 of 7
kubitTilo
in reply to: Anonymous

Are you linking with 3rd party libraries (that are using other flavours of MSVC runtime)?




Tilo Pfliegner
Message 7 of 7
owenwengerd
in reply to: Anonymous

There's really no way to guess. I would post the problem code to see if someone can spot the bug.

--
Owen Wengerd
ManuSoft

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

Post to forums  

Autodesk Design & Make Report

”Boost