thread.woe
.NET (Core and Framework)
1
Posts
1
Posters
0
Views
1
Watching
-
Hi cpians, I have a program where : The form creates a class then calls a method on that class, in this method I create a new thread to call another method in that class (which calls a webservice which is why I want it in another thread) . Once the original method returns I call thread.sleep on the main thread so that I can ensure that the webservice call has completed (this is just for test purposes in the real world the program would go on regardless) Problem is the call to thread.sleep causes my other thread, which should be going about its business un-interupted to pause. Whats the vibe, when I tested it a few days ago Im sure it wasnt doing this :( ? Thanks in advance.