|Subject:||InternetQueryOption crashes my application|
|Posted by:||John (johnli19…@hotmail.com)|
|Date:||Fri, 04 Mar 2005|
I am experiencing difficulty in using InternetQueryOption() in one of my
Here is the code snippet:
if (!InternetQueryOption(NULL,INTERNET_OPTION_PROXY, NULL, &size))
po = (INTERNET_PROXY_INFO *) malloc(size);
if (!InternetQueryOption(NULL,INTERNET_OPTION_PROXY, po, &size))
If I put this code in ANY threads, when application exits, it will crash.
But I can use the same funciton in other applications without any problems.
I am not the original author for this application. And I am wondering what
kind of things could prevent wininet queryOption usage?
Someone has the similar experience and could share your solutions?
Thanks very much!