Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clear Dlls takes too long
Message
De
15/04/2003 10:39:29
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/04/2003 09:19:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00777673
Message ID:
00777732
Vues:
25
>Hi!
>
>I have created a ftp class which declares the following functions in wininet.dll
>
>*-- Start of Method Init()
>This.SetUp()
>*-- End of Method Init()
>
>*-- Start of Method SetUp()
>Declare Integer InternetConnect In WinINet.Dll ...
>Declare Integer InternetOpen In WinINet.Dll ...
>Declare Integer InternetCloseHandle In WinINet.Dll ...
>Declare Integer InternetWriteFile In WinINet.Dll ...
>Declare Integer FtpSetCurrentDirectory In WinINet.Dll ...
>Declare Integer FtpOpenFile In WinINet.Dll ...
>Declare Integer FtpRenameFile In WinINet.Dll ...
>Declare Integer FtpDeleteFile In WinINet.Dll ...
>
>return .t.
>*-- End of Method SetUp()
>
>Every things works fine I can connect to an FTP site and upload, delete, rename files etc. but at the end in the cleanup method where I clear the dlls it takes about 30 seconds for the "Clear DLLs" command to execute any ideas why?
>
>Thanks
>
>Sarosh
>
>*-- Start of Method CleanUp()
>If not This.nSession = 0 then
> InternetCloseHandle(This.nSession)
>EndIf
>
>Clear Dlls "FtpDeleteFile", ;
> "FtpRenameFile", ;
> "InternetWriteFile", ;
> "FtpOpenFile", ;
> "FtpSetCurrentDirectory", ;
> "InternetConnect", ;
> "InternetCloseHandle", ;
> "InternetOpen"
>
>return .t.
>*-- End of Method CleanUp()

Sarosh,
I have those and more in my version and clear dlls doesn't even take a second.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform