Multi-threaded client.

Post Reply
tony.malandain
Posts: 57
Joined: Sat Mar 27, 2004 6:39 pm

Multi-threaded client.

Post by tony.malandain »

Hi,

I'm trying to write a client (COM object) that uses the Texis API in a multi-threaded environment and I have some problems with error handling.
My understanding is that if I want to get the error description from Texis, I need to register a function via setmmsg. But then how do I know which thread triggered the error?
Do you have some guidelines on how I could do that?

Thanks,
/Tony.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Multi-threaded client.

Post by mark »

Since texis can't be used simultaneously from multiple threads the message will always be from the thread running texis.
tony.malandain
Posts: 57
Joined: Sat Mar 27, 2004 6:39 pm

Multi-threaded client.

Post by tony.malandain »

So if I want to run multiple queries, do I have to have multiple processes?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Multi-threaded client.

Post by mark »

Either separate processes or serially within the same process.
Post Reply