OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: dgpuertas on March 24, 2010, 05:09:48 AM

Title: INTERNAL ERROR: !scandr.cpp@2232: eLockViolation
Post by: dgpuertas on March 24, 2010, 05:09:48 AM
Hi,
When I use a function to create entities via entmake with a button in a Modeless dialog AutoCAD crash.
Appear "INTERNAL ERROR: !scandr.cpp@2232: eLockViolation" and close AutoCAD.

¿Does anyone know what happens?

I use AutoCAD 2010 Spanish and OpenDCL 6.0.23 (last version)
Sorry about my English
Title: Re: INTERNAL ERROR: !scandr.cpp@2232: eLockViolation
Post by: owenwengerd on March 24, 2010, 06:06:39 AM
You'll either need to lock the document first, or execute your event handler with EventInvoke set to Asynchronous.
Title: Re: INTERNAL ERROR: !scandr.cpp@2232: eLockViolation
Post by: Fred Tomke on March 24, 2010, 11:13:36 PM
Hi, dgpuertas,

another chance would be to create new entities using ActiveX methods instead.
I made the bad experience that AutoCAD crashes if I tried to create a new entity using entmake outside the visible area of the current viewport.

Fred
Title: Re: INTERNAL ERROR: !scandr.cpp@2232: eLockViolation
Post by: dgpuertas on March 25, 2010, 06:00:02 AM
How I can lock the document?
its the .odcl document?
Neither I know how to use EventInvoke,
I use a button with the Event Clicked inside the modeless dialog.

Thanks
Sorry about my English.
Title: Re: INTERNAL ERROR: !scandr.cpp@2232: eLockViolation
Post by: Fred Tomke on March 25, 2010, 06:45:33 AM
Quote from: dgpuertas on March 25, 2010, 06:00:02 AM
Neither I know how to use EventInvoke,

Hi, dgpuertas,


Should work now.

Fred
Title: Re: INTERNAL ERROR: !scandr.cpp@2232: eLockViolation
Post by: owenwengerd on March 25, 2010, 09:13:43 AM
Quote from: dgpuertas on March 25, 2010, 06:00:02 AM
How I can lock the document?
its the .odcl document?

No, the AutoCAD document.
Title: Re: INTERNAL ERROR: !scandr.cpp@2232: eLockViolation
Post by: Fred Tomke on March 25, 2010, 09:38:39 AM
Quote from: owenwengerd on March 25, 2010, 09:13:43 AM
No, the AutoCAD document.

That's also interesting for me: how do you lock the document with lisp?

Fred
Title: Re: INTERNAL ERROR: !scandr.cpp@2232: eLockViolation
Post by: owenwengerd on March 25, 2010, 11:37:16 AM
I don't think there are any built in functions to directly lock and unlock a document via lisp, so you have to do it indirectly through ActiveX or by sending a command to the command line.
Title: Re: INTERNAL ERROR: !scandr.cpp@2232: eLockViolation
Post by: dgpuertas on March 26, 2010, 03:02:59 AM
Thanks Fred,
EventInvoke works fine.
I don´t know how to lock de autocad document but EventInvoke is valid for me.

Thanks a lot at Fred and owen,
Ciao