Page 1 of 1

Multi-threaded client.

Posted: Wed Jul 21, 2004 11:50 am
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.

Multi-threaded client.

Posted: Wed Jul 21, 2004 12:07 pm
by mark
Since texis can't be used simultaneously from multiple threads the message will always be from the thread running texis.

Multi-threaded client.

Posted: Wed Jul 21, 2004 12:09 pm
by tony.malandain
So if I want to run multiple queries, do I have to have multiple processes?

Multi-threaded client.

Posted: Wed Jul 21, 2004 1:05 pm
by mark
Either separate processes or serially within the same process.