Randy Hawkins
2005-03-18 14:35:02 UTC
My code hangs on the following call to InternetOpenURL() (some code has been
removed for brevity) if I have "Automatically detect settings" checked in
Control Panel (Control Panel->Internet Options->Connections tab->LAN Settings
button):
hINet = ::InternetOpen( AGENT_NAME.c_str(), INTERNET_OPEN_TYPE_PRECONFIG,
NULL, NULL, 0);
if( hINet)
{
hHttpFile = InternetOpenUrl( hINet, (const char *)
url.c_str(), REFERER.c_str(), REFERER.length(), INTERNET_FLAG_RELOAD, 0);
<do stuff>
}
I do not use a Proxy Server and did not have this option checked on my
machine. But, others in the office, who also do not use a Proxy Server, had
it checked (for some reason?!?!?) and the app would hang. Unchecking the
option solved the problem.
I can reproduce the 'hang' on my box by simply selecting the option.
Internet Explorer opens the same URL I am trying to open. Why would this
option be checked? How do I work around this? Can I detect this situation
where the option is checked but no Proxy Server is used? And, if so, what do
I do then?
What additional info is needed to help present my specific situation?
Thanks,
Randy
removed for brevity) if I have "Automatically detect settings" checked in
Control Panel (Control Panel->Internet Options->Connections tab->LAN Settings
button):
hINet = ::InternetOpen( AGENT_NAME.c_str(), INTERNET_OPEN_TYPE_PRECONFIG,
NULL, NULL, 0);
if( hINet)
{
hHttpFile = InternetOpenUrl( hINet, (const char *)
url.c_str(), REFERER.c_str(), REFERER.length(), INTERNET_FLAG_RELOAD, 0);
<do stuff>
}
I do not use a Proxy Server and did not have this option checked on my
machine. But, others in the office, who also do not use a Proxy Server, had
it checked (for some reason?!?!?) and the app would hang. Unchecking the
option solved the problem.
I can reproduce the 'hang' on my box by simply selecting the option.
Internet Explorer opens the same URL I am trying to open. Why would this
option be checked? How do I work around this? Can I detect this situation
where the option is checked but no Proxy Server is used? And, if so, what do
I do then?
What additional info is needed to help present my specific situation?
Thanks,
Randy