Author Topic: Active doc 32bit vs 64  (Read 3647 times)

0 Members and 1 Guest are viewing this topic.

Jeff H

  • Needs a day job
  • Posts: 6150
Re: Active doc 32bit vs 64
« Reply #15 on: March 29, 2013, 04:29:23 PM »
The acmgd.dll, etc... you reference in the ObjectArx folder are just the declarations or signatures. There is no implementation inside the functions but allow the compiler to see the functions names, parameters, and return types.
That is why you set Copy Local to false because AutoCAD loads them at startup and when your plugin loads and it does not try to load them since the assemblies have already been loaded.


So testing code is not really going to tell much, and even testing a dll set to AnyCPU should work on either platform.
Even if your not making a call to a function declared in one the Interops do you still have it referenced in assembly?
VS2010 by defaults sets Embed Interop Types to true and Acmgd references the Interops so that might be the cause?


I think you should testing a built dll to try to diagnose the problem since everyone's build could be different.

Bryco

  • Water Moccasin
  • Posts: 1883
Re: Active doc 32bit vs 64
« Reply #16 on: March 31, 2013, 11:00:47 AM »
The code you see was the whole deal so there is no interop.
I did try it as built dll and the same thing.  My cad is doing some weird things though

fixo

  • Guest
Re: Active doc 32bit vs 64
« Reply #17 on: March 31, 2013, 11:46:01 AM »
Some time I've compiled project in Release mode,
then it goes right,  can you try this? (just a dummy idea)