G
Guest
I create a method that copy files from one folder to another (see the ex.
code).
A new thread will create every time when user click the button.
The button is enable only when the copy process was finished( ThreadState =
Stop )
My question is when ThreadState = Stop, the system will release the Memory
or not?
Is my code generated multiply threads?
Thanks,
Code:
private Thread copyFiles;
private void btnImport_Click(object sender, System.EventArgs e)
{
copyFiles = new Thread( new ThreadStart(CopyFilesToProcessFolder) );
copyFiles.Start();
}
code).
A new thread will create every time when user click the button.
The button is enable only when the copy process was finished( ThreadState =
Stop )
My question is when ThreadState = Stop, the system will release the Memory
or not?
Is my code generated multiply threads?
Thanks,
Code:
private Thread copyFiles;
private void btnImport_Click(object sender, System.EventArgs e)
{
copyFiles = new Thread( new ThreadStart(CopyFilesToProcessFolder) );
copyFiles.Start();
}