Hi,
I'm fairly new to threading and i would like to start a new thread but when
the thread isn't completed within 30 seconds i would like the thread to end
and resume the procedure that started the thread. Preferably with an event.
I tried to find information on the internet but i can't find a sample that i
understand.
The samples that are provided include several other things that i think i
don't need.
Language is a problem and i can't find any (good) samples in my own language.
If you can, please help, it would be greatly appriciated
Thanks in advance!
Rob Smeets
Robin Tucker - 20 Sep 2005 14:38 GMT
My first thought is that if you are "resuming the procedure that started the
thread", you are wanting to block the program until the thread finishes or
times out. If this is the case, do you really need a thread at all?
> Hi,
>
[quoted text clipped - 18 lines]
>
> Rob Smeets
shiv_koirala@yahoo.com - 20 Sep 2005 14:58 GMT
Did you try thread.suspend , thread.sleep etc etc it has lot of
options.
Regards,
C#, VB.NET , SQL SERVER , UML , DESIGN Patterns Interview question book
http://www.geocities.com/dotnetinterviews/
Cor Ligthert [MVP] - 20 Sep 2005 15:24 GMT
Rob,
Would you not try with a more simpler solution. A thread is not something
that stops direct when you abort it etc.
As well can you tell why you want to use threading (as Robin already asked).
Often we see here that people want to use threading and than the only result
is that the application takes more resources and time.
Language should not be a problem, the most activate persons in this
newsgroup are from German, English, Danish, Spanish and Dutch speaking
countries (I hope I forget nobody) and there are a lot of visitors with
other native languages. While your name sound at least Dutch.
Cor