B
bie2
Hi,
Here's what I want to do:
1. Start the application.
2. A SplashScreen running in its own thread is started.
3. I'm checking if the application needs an update.
4. If an update is needed I close the SplashScreen and copy the file.
5. Restart the application.
My problem is happening at step 4. I tried everything that I know to
close the SplashScreen, but I seems to be unable to do it. When the
application file is being replace it's always saying that the
executable is used by another process.
If I remove the code related to the SplashScreen everything is working
fine.
I tried to call a function in the SplashScreen with this code:
ms_oThread.Abort();
ms_oThread.Join();
ms_oThread = null;
Was not working.
Anyone have any idea how I could be able to do that?
Thanks
Here's what I want to do:
1. Start the application.
2. A SplashScreen running in its own thread is started.
3. I'm checking if the application needs an update.
4. If an update is needed I close the SplashScreen and copy the file.
5. Restart the application.
My problem is happening at step 4. I tried everything that I know to
close the SplashScreen, but I seems to be unable to do it. When the
application file is being replace it's always saying that the
executable is used by another process.
If I remove the code related to the SplashScreen everything is working
fine.
I tried to call a function in the SplashScreen with this code:
ms_oThread.Abort();
ms_oThread.Join();
ms_oThread = null;
Was not working.
Anyone have any idea how I could be able to do that?
Thanks