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
Solved! Go to Solution.
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.