Re: Non Responsive Application after update comple (General questions)
Hi Drazen,
wodAppUp.dll = 1.2.9.77
Using COM interface, testing on Windows XP SP2
Been through examples, cant really see any major differences.
Here is the simple test app we have been using to diagnose:
Calling code:
[code]
Dim updater As New Core
updater.Start http://server/path/updates.txt
[/code]
Core Class:
[code]
Option Explicit
Private WithEvents updater As wodAppUpdateCom
Private Sub Logit(Optional Text As String = )
Dim fh As Long
fh = FreeFile
If Len(Text) = 0 Then
Open App.Path & init.log For Output As #fh
Text = -----------------------Start Init Logging-----------------------
Else
Open App.Path & init.log For Append As #fh
End If
Print #fh, Format(Now, yyyy-MM-dd HH:mm:ss ) & - & Text
Close fh
End Sub
Private Sub Class_Initialize()
Set updater = New wodAppUpdateCom
updater.Blocking = True
updater.LicenseKey = xxxxxxx
End Sub
Public Sub Start(URL As String)
Logit
Logit Check Called...
updater.Check URL, False
Logit End!
End
End Sub
Private Sub updater_CheckDone(ByVal NewFiles As Long, ByVal ErrorCode As Long, ByVal ErrorText As String)
If ErrorCode = 0 Then
Logit Check Done - & NewFiles & New Files Found
Logit Download Called...
updater.Download
Else
Logit Error with Check : & ErrorText
End If
End Sub
Private Sub updater_CloseApp()
Logit Close App
End
End Sub
Private Sub updater_DownloadDone(ByVal ErrorCode As Long, ByVal ErrorText As String)
If ErrorCode = 0 Then
Logit Download Done
Logit Update Started...
updater.Update
Else
Logit Error with Download : & ErrorText
End If
End Sub
Private Sub updater_FileDone(ByVal File As WODAPPUPDATECOMLib.IUpdFile, ByVal ErrorCode As Long, ByVal ErrorText As String)
If ErrorCode = 0 Then
Logit File Downloaded : & File.Name & , & File.NewVersion
Else
Logit Error with File Download : & ErrorText
End If
End Sub
Private Sub updater_FileStart(ByVal File As WODAPPUPDATECOMLib.IUpdFile)
Logit Starting Download of & File.Name & ...
End Sub
Private Sub updater_PrevDetected()
Logit Previous Downloads Detected...
Logit Update Called...
updater.Update
End Sub
Private Sub updater_UpdateDone(ByVal ErrorCode As Long, ByVal ErrorText As String)
If ErrorCode = 0 Then
Logit Update Complete!
Else
Logit Error with Update : & ErrorText
End If
End Sub
[/code]
After we see the End! message in log the application is still running, eventhough this is the last line of code that can be executed.
I would be interested if you could recreate the same problem.
Regards,
Rik
Complete thread:
- Non Responsive Application after update complete - Rik Arpin, 2008-04-02, 09:22
- Re: Non Responsive Application after update comple - woddrazen, 2008-04-02, 10:13
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-02, 10:29
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-02, 10:30
- Re: Non Responsive Application after update comple - woddrazen, 2008-04-02, 12:51
- Re: Non Responsive Application after update comple - woddrazen, 2008-04-02, 13:19
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-02, 13:24
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-02, 13:50
- Re: Non Responsive Application after update comple - woddrazen, 2008-04-02, 14:17
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-03, 11:54
- Re: Non Responsive Application after update comple - wodDamir, 2008-04-03, 12:23
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-03, 12:34
- Re: Non Responsive Application after update comple - wodDamir, 2008-04-03, 12:50
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-03, 13:08
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-03, 13:14
- Re: Non Responsive Application after update comple - wodDamir, 2008-04-03, 13:46
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-03, 14:07
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-04, 10:46
- Re: Non Responsive Application after update comple - woddrazen, 2008-04-04, 12:14
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-04, 12:21
- Re: Non Responsive Application after update comple - woddrazen, 2008-04-04, 12:14
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-04, 10:46
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-03, 14:07
- Re: Non Responsive Application after update comple - wodDamir, 2008-04-03, 13:46
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-03, 13:14
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-03, 13:08
- Re: Non Responsive Application after update comple - wodDamir, 2008-04-03, 12:50
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-03, 12:34
- Re: Non Responsive Application after update comple - wodDamir, 2008-04-03, 12:23
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-03, 11:54
- Re: Non Responsive Application after update comple - woddrazen, 2008-04-02, 14:17
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-02, 13:50
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-02, 13:24
- Re: Non Responsive Application after update comple - woddrazen, 2008-04-02, 13:19
- Re: Non Responsive Application after update comple - woddrazen, 2008-04-02, 12:51
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-02, 10:30
- Re: Non Responsive Application after update comple - Rik Arpino, 2008-04-02, 10:29
- Re: Non Responsive Application after update comple - woddrazen, 2008-04-02, 10:13