.NET

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

Issues for Transaction.Commit() in Auto CAD 2013

381 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

 

 

 

Distinguished Contributor
khoa.ho
Posts: 136
Registered: ‎09-15-2011
Message 2 of 6 (342 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

ADN Support Specialist
Posts: 349
Registered: ‎05-22-2006
Message 3 of 6 (300 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
Distinguished Contributor
khoa.ho
Posts: 136
Registered: ‎09-15-2011
Message 4 of 6 (297 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 (272 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

ADN Support Specialist
Posts: 349
Registered: ‎05-22-2006
Message 6 of 6 (270 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community