U
Uwe
Hello,
I have an application in which I want to show a loadscreen. (I'm loading
data from the WEB and as long the app load the data I show an animated
screen which says Loading Data. I used a thread for this. It works fine on a
machine where I have installed Visual Studio (2005 or 2008) as EXE or within
VS.
I run it o n a machine where Visual Studio is not installed it crashes when
I try to start the wait screen (after closing) a second time, or the
application crashed when I close it if I only strat the screen one times.
I got the typical DW20.exe error message.
Thats the code:
C#-Code:
Thread LoadThread = new Thread(new ThreadStart(ShowLoadScreen));
LoadThread.IsBackground = true;
LoadThread.SetApartmentState(ApartmentState.STA);
LoadThread.Start();
... Aktionen ...
LoadThread.Abort();
fWait.Close();
ShowLoadScreen()
{
fWait = new frmWait();
fWait.ShowDialog();
fWait = null;
}
What may I do against ?
Thanks and regards
Uwe
I have an application in which I want to show a loadscreen. (I'm loading
data from the WEB and as long the app load the data I show an animated
screen which says Loading Data. I used a thread for this. It works fine on a
machine where I have installed Visual Studio (2005 or 2008) as EXE or within
VS.
I run it o n a machine where Visual Studio is not installed it crashes when
I try to start the wait screen (after closing) a second time, or the
application crashed when I close it if I only strat the screen one times.
I got the typical DW20.exe error message.
Thats the code:
C#-Code:
Thread LoadThread = new Thread(new ThreadStart(ShowLoadScreen));
LoadThread.IsBackground = true;
LoadThread.SetApartmentState(ApartmentState.STA);
LoadThread.Start();
... Aktionen ...
LoadThread.Abort();
fWait.Close();
ShowLoadScreen()
{
fWait = new frmWait();
fWait.ShowDialog();
fWait = null;
}
What may I do against ?
Thanks and regards
Uwe