C# (SilkroadSecurity) Thread.Join();

06/03/2011 01:36 eXtreme'#1
Hi,
i'm using SilkroadSecurity API and it's simple_proxy class.
But when i want to start the Thread and join it (Thread.Join();), the client starts perfectly but my is hanging.
Can anyone help me?

Thanks
06/03/2011 07:10 pushedx#2
Try using this proxy example instead: [Only registered and activated users can see links. Click Here To Register...]
06/03/2011 11:56 lesderid#3
Start the proxy in a new thread, otherwise it'll block your other threads (for example GUI thread).
06/03/2011 13:57 xXTraXx#4
As far as I know, if you use Thread.join, the threads will run synchonous again, so if you have for example a long calculation, the other thread will wait until it's done.(That's why it's hanging)
06/03/2011 14:57 eXtreme'#5
I started the proxy in an own Thread now, so I did it like leserdid suggested.

But thanks to you all for your help
06/05/2011 18:12 npcdoom#6
Thread.join(); is a function to wait for a thread to finish and exit, its a blocking call so nothing will get executed after the join call until the threads complete whatever is doing.