Message 1 of 4
How to tell if an ObjectID has already been Opened
Not applicable
01-12-2011
10:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an event handler setup for DB.ObjectErased event. In certain situations I need to check the object. However, I can run into an issue where the erase was triggered from another one of my functions, so I error out when I try to access the object with an eWasOpenForWrite. The details are not very relevent here, and my question is: is there a way to check the object ID to see if it was already opened before I try to open it?
I would like to check, rather than put it in a Try...Catch, if only because when I debug, i leave visual studio set to break on exceptions and it can make debugging difficult when the code keeps stopping.