K
Kevin Otte
Hi,
I'm currently working on a little tool to copy files over the network
using FileStreams. I've written a class that takes care of that.
I create an instance of the class within the main program, specify
some properties and start a new thread which calls the StartCopy
method.
My idea was to have a method called 'Stop' which switches a bool to
true and the while-loop within the StartCopy stuff would check that
bool continously to know when to stop.
Now the problem is that I don't seem to be able to do that because
everytime i call 'Stop', the 'StartCopy' method seems to stop working
without even checking the bool.
I'm quite close to a nervous breakdown...
I'm currently working on a little tool to copy files over the network
using FileStreams. I've written a class that takes care of that.
I create an instance of the class within the main program, specify
some properties and start a new thread which calls the StartCopy
method.
My idea was to have a method called 'Stop' which switches a bool to
true and the while-loop within the StartCopy stuff would check that
bool continously to know when to stop.
Now the problem is that I don't seem to be able to do that because
everytime i call 'Stop', the 'StartCopy' method seems to stop working
without even checking the bool.
I'm quite close to a nervous breakdown...