Information générale
Catégorie:
Fonctions Windows API
Try clearing each DLL with a separate statement vs one statement.
If that doesn't help, display the elapsed time after each CLEAR statement and see if the system is hanging on one CLEAR in particular.
That might at least narrow the problem down.
>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()
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement