FreeLibrary takes much time(45 sec) to free a Win32 dll
-
Hi, I have dll which is loaded using LoadLibrary and freed using FreeLibrary. The functionality of dll is to send a https request to a server and get the response. I am using wininet library for sending and receiving http data. my sequence of wininet api functions are InternetOpen InternetConnect HttpOpenRequest HttpSendRequest InternetReadFile I closed all the handles corresponding to above. any suggestions. thanks
-
Hi, I have dll which is loaded using LoadLibrary and freed using FreeLibrary. The functionality of dll is to send a https request to a server and get the response. I am using wininet library for sending and receiving http data. my sequence of wininet api functions are InternetOpen InternetConnect HttpOpenRequest HttpSendRequest InternetReadFile I closed all the handles corresponding to above. any suggestions. thanks
gbabu17 wrote:
FreeLibrary takes much time(45 sec) to free a Win32 dll
We can't comment on any custom dll without seeing actually, what is coding has been done in that particular dll!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
gbabu17 wrote:
FreeLibrary takes much time(45 sec) to free a Win32 dll
We can't comment on any custom dll without seeing actually, what is coding has been done in that particular dll!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
Hi alok, Ya i know it is difficult to suggest without seeing the code. I have tried to debug the dll in all possible ways and i found that if i do not send the request i dll is freed normally, but if i use the wininet api for sending the requests and getting response it is taking much time to free the library. i mean to ask wininet.lib internally takes much time to get freed. thanks
-
Hi alok, Ya i know it is difficult to suggest without seeing the code. I have tried to debug the dll in all possible ways and i found that if i do not send the request i dll is freed normally, but if i use the wininet api for sending the requests and getting response it is taking much time to free the library. i mean to ask wininet.lib internally takes much time to get freed. thanks
gbabu17 wrote:
i mean to ask wininet.lib internally takes much time to get freed.
WinInet api are very heavy!.. might be its closing net/Socket connection that might be taking time to unload!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
gbabu17 wrote:
i mean to ask wininet.lib internally takes much time to get freed.
WinInet api are very heavy!.. might be its closing net/Socket connection that might be taking time to unload!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
gbabu17 wrote:
so is there some way to trace them, which is taking time to unload.
use profilers
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You