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

Can ObjectARX work together with MultiThread such as pthread.h

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
421232206
725 Views, 3 Replies

Can ObjectARX work together with MultiThread such as pthread.h

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.

Technology change world! Coding change technology! We coders are coding!
3 REPLIES 3
Message 2 of 4
owenwengerd
in reply to: 421232206

The ObjectARX API is not multithread safe. You must only call API functions from the main thread.

--
Owen Wengerd
ManuSoft
Message 3 of 4
421232206
in reply to: owenwengerd

it is a pity. thanks.
Technology change world! Coding change technology! We coders are coding!
Message 4 of 4
dgorsman
in reply to: 421232206

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.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


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

Post to forums  

Autodesk Design & Make Report

”Boost