Hallo...
Ich hab hier en recht komischer Fehler....mit diesem Code (fertiger Dwonload mit webclient):
wird die Sub "dekodieren" 2 mal gestartet....dadurch wird FFMPEG natürlcih auch doppelt gestartet...
An der Dekodieren-Sub kanns auch nicht liegen, da der Selbe Fehler auch bei nem anderen Programm vorkommt (und da trägts statt einem Listvew-item auch gleich 2 ein ) oO
Ich hab zwar schon ne idee wie ich des Lösen könnt, aber eigentlich ist das doch nicht normal dass ein Download zweimal Fertig ist
Hoffe jemand weis ne Lösung (Außer beim DLfertig ereignis variable hochzählen lassen und dekodieren nur bei 0 ausführen oder so ähmlich :D)
MfG Stefan
Ich hab hier en recht komischer Fehler....mit diesem Code (fertiger Dwonload mit webclient):
VB.NET-Quellcode
- Private Sub dlfertig(ByVal sender As Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs) Handles downloader.DownloadFileCompleted
- If e.Cancelled = False Then
- Timer1.Stop()
- dekodieren(saveurl, Form1.settings(6) & "/" & Path.GetFileNameWithoutExtension(saveurl) & ".mp3")
- Else
- Exit Sub
- End If
- End Sub
wird die Sub "dekodieren" 2 mal gestartet....dadurch wird FFMPEG natürlcih auch doppelt gestartet...
An der Dekodieren-Sub kanns auch nicht liegen, da der Selbe Fehler auch bei nem anderen Programm vorkommt (und da trägts statt einem Listvew-item auch gleich 2 ein ) oO
Ich hab zwar schon ne idee wie ich des Lösen könnt, aber eigentlich ist das doch nicht normal dass ein Download zweimal Fertig ist
Hoffe jemand weis ne Lösung (Außer beim DLfertig ereignis variable hochzählen lassen und dekodieren nur bei 0 ausführen oder so ähmlich :D)
MfG Stefan