F
Fredrik Melin
Hi,
How can I make a sub to be executed only one at the time in a multithreaded
environment?
Eg, I have "server" thread,s that does printing, problem is when several
server threads running at the same time, the Crystal Reports Com Object
crashes, Guess its not thread safe..
How can I change so my "PrintReport" sub only run one at the time, if
another thread is requried to use it, it need to wait until the first is
done.
( I see how I can do it with a global boolean and some do while loops, but
is there any built in functionallity for this kind of operations?)
- Fredrik
How can I make a sub to be executed only one at the time in a multithreaded
environment?
Eg, I have "server" thread,s that does printing, problem is when several
server threads running at the same time, the Crystal Reports Com Object
crashes, Guess its not thread safe..
How can I change so my "PrintReport" sub only run one at the time, if
another thread is requried to use it, it need to wait until the first is
done.
( I see how I can do it with a global boolean and some do while loops, but
is there any built in functionallity for this kind of operations?)
- Fredrik