.NET

.NET

Reply
Contributor
deep_1984
Posts: 13
Registered: ‎01-13-2011
Message 1 of 6 (410 Views)

Issues for Transaction.Commit() in Auto CAD 2013

410 Views, 5 Replies
08-01-2012 05:22 AM

Hello,

I am facing problem for committing transaction for Auto CAD 2013 for 32 bit Computer with transaction.Commit(). But it is working fine for 64 bit Computer. It is giving error for AccessViolation ("Attempted to read or write protected memory. This is often an indication that other memory is corrupt."). Same Code is working fine for 64 bit.

Is it require more code or import any dll?

 

Thanks

Sandeep

 

 

 

Mentor
khoa.ho
Posts: 209
Registered: ‎09-15-2011
Message 2 of 6 (371 Views)

Re: Issues for Transaction.Commit() in Auto CAD 2013

08-03-2012 09:40 AM in reply to: deep_1984

You may reference acdbmdg.dll x64 of AutoCAD 2013 64 bit. AutoCAD 32 bit and 64 bit use different acdbmdg.dll. You should have another project for AutoCAD 2013 x86 that uses the same code with AutoCAD 2013 x64 but references different DLL file. Remember 64-bit DLL does not work on 32-bit machine.

 

-Khoa

Board Manager
StephenPreston
Posts: 377
Registered: ‎05-22-2006
Message 3 of 6 (329 Views)

Re: Issues for Transaction.Commit() in Auto CAD 2013

08-06-2012 10:47 AM in reply to: khoa.ho

Hi Khoa Ho - I'm sorry, but that information is not accurate. You should reference the same version of acmdg.dll, acdbmgd.dll and accoremgd.dll for both 32-bit and 64-bit builds. Maybe the mistake you're making is to reference those DLLs from the AutoCAD installation dirctory, when you should be referencing the 'stripped down' versions in the ObjectARX 2013 SDK 'inc' folder (and making sure you set Copy Local for the reference to 'False').

 

If you use the COM Interop assemblies - which are 32-bit/64-bit dependent - then you do have to reference the correct assembly from the inc-win32 or inc-x64 directories of the ObjectARX SDK.

 

Seeing some sample code would be helpful to answer why committing the transaction is actually failing in this situation.

 

Cheers,

Stephen Preston
Autodesk Developer Network
Mentor
khoa.ho
Posts: 209
Registered: ‎09-15-2011
Message 4 of 6 (326 Views)

Re: Issues for Transaction.Commit() in Auto CAD 2013

08-06-2012 11:07 AM in reply to: deep_1984

Hi Stephen,

Thank you for the correction. I did not test AutoCAD 2013 .NET API and ObjectARX 2013 SDK. My projects are on AutoCAD 2009 for both x86 and x64 so this may be a case for acmgd.dll and acdbmgd.dll in 32-bit and 64-bit builds.

-Khoa

Contributor
deep_1984
Posts: 13
Registered: ‎01-13-2011
Message 5 of 6 (301 Views)

Re: Issues for Transaction.Commit() in Auto CAD 2013

08-07-2012 10:31 PM in reply to: deep_1984

Hello,

I have checked everything regarding dll references, and everything is correct.

 

Regards,

Sandeep

Board Manager
StephenPreston
Posts: 377
Registered: ‎05-22-2006
Message 6 of 6 (299 Views)

Re: Issues for Transaction.Commit() in Auto CAD 2013

08-07-2012 10:47 PM in reply to: deep_1984

Sandeep - Unless you post a code snippet or sample project, it is very unlikely that anyone will be able to guess the solution to your problem based on the information you have provided.

Cheers,

Stephen Preston
Autodesk Developer Network
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.