by Ludek » Tue Mar 09, 2021 4:05 pm
Hi,
thanks, in the debug log I see "No internet connection" exception while performing request through our Indy library.
Seeing this first time that "No internet connection" would be thrown when there is a connection actually.
After further analyzing I see that InternetGetConnectedState in wininet.dll falsely return ''false' for some reason.
More specificaly it is this function of winapi:
https://docs.microsoft.com/en-us/window ... ectedstate
From the description I see that when InternetGetConnectedState returns FALSE, the application can call GetLastError to retrieve the error code.
I will enahnce the logging for the next build to see GetLastError , but it is by evidence a problem in your system that this winapi founction does not return correct result.
EDIT: Seeing that using this API is no longer recommended, we should use the INetworkListManager::GetConnectivity method instead.
Entered as:
https://www.ventismedia.com/mantis/view.php?id=17652
Hi,
thanks, in the debug log I see "No internet connection" exception while performing request through our Indy library.
Seeing this first time that "No internet connection" would be thrown when there is a connection actually.
After further analyzing I see that InternetGetConnectedState in wininet.dll falsely return ''false' for some reason.
More specificaly it is this function of winapi: https://docs.microsoft.com/en-us/windows/win32/api/winineti/nf-winineti-internetgetconnectedstate
From the description I see that when InternetGetConnectedState returns FALSE, the application can call GetLastError to retrieve the error code.
I will enahnce the logging for the next build to see GetLastError , but it is by evidence a problem in your system that this winapi founction does not return correct result.
EDIT: Seeing that using this API is no longer recommended, we should use the INetworkListManager::GetConnectivity method instead.
Entered as: https://www.ventismedia.com/mantis/view.php?id=17652