G
George Chatzigeorgiou
Hello all.
On a winforms aplication for the compact framework, I get this strange
error. The first time the form is constructed, everything is ok. The
second time, I get this exception when trying to use Control.Invoke on a
control. The code looks something like this
void ShowUpdateForm()
{
frmUpdate fup = new frmUpdate();
fup.ShowDialog();
//fup.Dispose();
}
As I said, the first time ShowUpdateForm is called, everything is ok.
If I try to call it once more then every Control.Invoke funtion in the
form, gives a ObjectDisposedException. I tried disposing the form after
show dialog (code in comments) but to no avail.
Any help would be appreciated.
Thanks
On a winforms aplication for the compact framework, I get this strange
error. The first time the form is constructed, everything is ok. The
second time, I get this exception when trying to use Control.Invoke on a
control. The code looks something like this
void ShowUpdateForm()
{
frmUpdate fup = new frmUpdate();
fup.ShowDialog();
//fup.Dispose();
}
As I said, the first time ShowUpdateForm is called, everything is ok.
If I try to call it once more then every Control.Invoke funtion in the
form, gives a ObjectDisposedException. I tried disposing the form after
show dialog (code in comments) but to no avail.
Any help would be appreciated.
Thanks