Sorry, yes I understand about logging errors and so. I'm just posting to see if someone else has an answer which would still open the file in read-only mode, since in my case there's lots of change that another user would have at least one of the DWGs open. Apparently ODBX just does not handle this.
I have handled this in the past by checking for a lock file. If a lock file exists, and I can't delete it, then I copy the drawing to a temp directory and open it from there.