Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clear Dlls takes too long
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00777673
Message ID:
00777813
Vues:
19
>This is strange. Do you call InternetCall two times: with FTP connection handle, and then with handle returned by InternetOpen?

Hi!

Yes, I call InternetCloseHandle(...) twice, first for the FTP connection and then for the session and then clear dlls. The CleanUp() Method just clears the dlls
*-- Method Close()
Local lnReturn

If not This.nFTPSession = 0 then
	lnReturn = InternetCloseHandle(This.nFTPSession)
	This.nFTPSession = 0
EndIf

If not This.nSession = 0 then
	lnReturn = InternetCloseHandle(This.nSession)
	This.nSession = 0
EndIf 

This.CleanUp()
*-- Method CleanUp()
Clear Dlls "FtpDeleteFile", ;
		   "FtpRenameFile", ;
		   "InternetWriteFile", ;
		   "FtpOpenFile", ;
		   "FtpSetCurrentDirectory", ;
		   "InternetConnect", ;
		   "InternetCloseHandle", ;
		   "InternetOpen"

Return .T.
Sarosh
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform