I am writing a multi-threaded application. There is a form. When a user clicks a button on a form, a stream is created in which files on all local drives are searched.
Is it necessary to manually " Terminate
and " Free
flow during the destroy
form? For example, if the user closes the program window or terminates the process while executing the stream. Or is it not necessary and when destroying the form, the resources of the stream will be released "by themselves"?