ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

eLock violation

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
alex_b
2564 Views, 2 Replies

eLock violation

Hello

"MyCommand" is a registered interactive user command which adds a custom entity to the db.

Why is it that when it is called from a modeless dialog it fails with eLock violation, while if the user types it at command prompt it works ok?

Note: I solved it by inserting acDocManager::LockDocument() at the apropriate place, but I am still curious about the error reason.

Thanks

alex

2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: alex_b

modal dialog as default works with current database, but if you want to modify another one you have to use lock.

modeless dialog can work with any database you want. there is no default one. so, you must use lock.

Message 3 of 3
alex_b
in reply to: Anonymous

I see. I didn't know that.

Many thanks.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost