app hangs, must restart?

aqeelashraf

New member
Joined
Jun 17, 2008
Messages
4
Programming Experience
3-5
Hi All,

I have created an application for our web based product. The application connects with the server and download the data. It checks for the updated data after every 10 mins time. It is working fine on some places but on sometimes it hangs and we need to restart the system. I didn't understand this weired behavior. If anybody know anything about this, please let me know. Thanks
 
As this question has nothing to do with Visual Studio .NET, I have moved it to a more relevant category.

You'll need to give more information about the application such as how is it connecting, etc... Perhaps show some relevant code.
 
Hi,

Thanks for the message. I use clsFTP class to connect and download the files. It is working fine on other systems but on few systems it hangs after few hours. Do you have any idea what that could be????
 
Is there any possibility that the timer control may cause this. I used the timer control and set the interval for 1 min. On every tick event (see the code below):

VB.NET:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        varTimeCount = varTimeCount + 1
        If varTimeCount = 5 Then
            Call getftpinfo() ' This function reads the fto info from text file
            If Var_Err = False Then
                logdrive = "C"
                ReadLastLine(logMSG) ' used to write the message in log file
                Exit Sub
            End If
            Call PhoneHome() ' this function is used to send the data to server
            If Var_Err = False Then
                Var_Err = True
                Exit Sub
            End If
        ElseIf varTimeCount = 10 Then
            Call getftpinfo()
            If Var_Err = False Then
                logdrive = "C"
                ReadLastLine(logMSG)
                Exit Sub
            End If
            Call PhoneHome()
            Call DKI_FTP()
            varTimeCount = 0
            If Var_Err = False Then
                Var_Err = True
                Exit Sub
            End If
        End If
    End Sub

Could you please have a look on the above code and let me know if there is any thing that may cause this issue. Thanks
 
Back
Top