AutoCAD .net x64

AutoCAD .net x64

Anonymous
Not applicable
589 Views
2 Replies
Message 1 of 3

AutoCAD .net x64

Anonymous
Not applicable

I created a .net AutoCAD plugin that assembles a bunch of dwg pages from existing smaller dwg files and then publishes the resulting dwg files to a single multiplage PDF file.  The plugin works fine on 32 bit machines but causes AutoCAD to crash on 64 bit machines.  Note that I compiled my .net plugin using the 64 bit version of AutoCAD libraries so I can run it on the 64 bit machine.  After struggling with this for a while I noticed that compiling my assemblies with code optimization turned off alleviates the problem but doesn't fix it completely.  I still get crashes from time to time.  Any idea why this occurs?

 

Thanks

0 Likes
590 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

hi

souleiman.restom,
 

Try to reset Autocad to default settings ( if possible do a registry clean using I.E. Regcleaner or CCleaner )
Restart your computer do a regclean again en start the X64 version of Autocad. Run tghe script and see what happens.

Can you provide us with an error code autocad gives?
 
 
If this helpd you please kudo and/or mark as solved
Thanks in advance
 
 
 

 

 

 

0 Likes
Message 3 of 3

SENL1362
Advisor
Advisor

 

 

- Make sure to set the property Copy Local=false for ALL the AutoCAD references.

 

Screenshot_1.png

 

- Copy the DLL as well as the PDB when compiled with Debug info.

 

- Could you compile the plugin on that 64-bits machine?

 

- Are the Windows systems equally installed, i.e. .NET libraries up to date?

Does it crash on all 64-bits machines?

 

 

 

- You wrote "from time to time", so it runs but may fail in sometimes.

Can you find out if it is at the same program locations?

 

 

 

0 Likes