I believe it will be very usefull to execute backgroud work with the active document at the time the user is doing something.
eg, while the user is drawing some line, I started a new thread to check whether the lines newly created satisfied some stanadard.
If anyone has any example about this, please send me a copy.
Solved! Go to Solution.
Solved by owenwengerd. Go to Solution.
The ObjectARX API is not multithread safe. You must only call API functions from the main thread.
For now its a necessity. Image if while you are attempting to process a drawing entity in another thread that entity is being changed by the user. Or while attempting to assign a layer to an entity in one thread another thread is deleting that layer. Drawings are databases, and have to follow the same rules and procedures for manipulating the records of its various tables.