I have a problem with any vb.net application running on my windows 2003 vps. I've tested this by creating the simplest form with just a button on it and executing the following code...
The program will run fine for hours, maybe a day, but then for no reason the controls will just disappear. The app is still running, can be moved around the screen, it's just the controls are missing. This is happening to ANY vb.net app running on the VPS.
Anybody seen this before? Any suggestions how to fix it?
Thanks
DK
VB.NET:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Button1.Enabled = False
Switchboard()
timMain.Start()
End Sub
Sub Switchboard()
Try
Catch e As Exception
LogError(e.Message, Now)
End Try
End Sub
Private Sub Form1_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
End
End Sub
Private Sub timMain_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles timMain.Tick
Application.DoEvents()
Switchboard()
End Sub
End Class
The program will run fine for hours, maybe a day, but then for no reason the controls will just disappear. The app is still running, can be moved around the screen, it's just the controls are missing. This is happening to ANY vb.net app running on the VPS.
Anybody seen this before? Any suggestions how to fix it?
Thanks
DK