INTERNAL ERROR: !scandr.cpp@2232: eLockViolation

Started by dgpuertas, March 24, 2010, 05:09:48 AM

Previous topic - Next topic

dgpuertas

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

owenwengerd

You'll either need to lock the document first, or execute your event handler with EventInvoke set to Asynchronous.
Owen Wengerd (Outside The Box) / ManuSoft

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

dgpuertas

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.

Fred Tomke

Quote from: dgpuertas on March 25, 2010, 06:00:02 AM
Neither I know how to use EventInvoke,

Hi, dgpuertas,


  • Open your odcl file in OpenDCL Studio
  • select you button
  • activate the property panel
  • searach for the property EventInvoke
  • Set the value to 1=AllowCommand
  • turn to Autocad
  • call the line (dcl_project_load "MyProject" T)
  • restart your command

Should work now.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

Owen Wengerd (Outside The Box) / ManuSoft

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft

dgpuertas

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