05-28-2025, 09:21 AM
This are some more informations:
The following changes appear to have been made to the component's source code in IW16.0.9 or before:
Error handling for the Geo API functions has been implemented.
If an error occurs, an error message is output to the server log file (!) and the component TIWIPGeolocationClient is blocked.
The behavior can be influenced by the user through the property variables MaxErrorCount and Enabled.
Unfortunately, these property variables could not be changed by my application:
TIWIPGeolocationClient* pCurClient;
if((pCurClient = new TIWIPGeolocationClient(this)) != NULL)
{
// THIS SEEMS NOT TO WORK
pCurClient->MaxErrorCount = 10;
pCurClient->Enabled = true;
// Interface and key
pCurClient->IPGeoApiInterface = TIPGeoApiInterface(CurIndex);
pCurClient->ApiKey = theApiKey;
// Execute GeoApi function
if(pCurClient->Execute(theIPAddress) == true)
{
// Retrieve API response
}
}
Apparently the current implementation under C++Builder does not work as described below:
https://docwiki.embarcadero.com/RADStudi...ss_Methods
A web application usually contains a large number of modules and components for which central error handling is performed.
The question that arises for me is whether a single component like TIWIPGeolocationClient should implement its own error handling and error output at all.
Regards Juergen
The following changes appear to have been made to the component's source code in IW16.0.9 or before:
Error handling for the Geo API functions has been implemented.
If an error occurs, an error message is output to the server log file (!) and the component TIWIPGeolocationClient is blocked.
The behavior can be influenced by the user through the property variables MaxErrorCount and Enabled.
Unfortunately, these property variables could not be changed by my application:
TIWIPGeolocationClient* pCurClient;
if((pCurClient = new TIWIPGeolocationClient(this)) != NULL)
{
// THIS SEEMS NOT TO WORK
pCurClient->MaxErrorCount = 10;
pCurClient->Enabled = true;
// Interface and key
pCurClient->IPGeoApiInterface = TIPGeoApiInterface(CurIndex);
pCurClient->ApiKey = theApiKey;
// Execute GeoApi function
if(pCurClient->Execute(theIPAddress) == true)
{
// Retrieve API response
}
}
Apparently the current implementation under C++Builder does not work as described below:
https://docwiki.embarcadero.com/RADStudi...ss_Methods
A web application usually contains a large number of modules and components for which central error handling is performed.
The question that arises for me is whether a single component like TIWIPGeolocationClient should implement its own error handling and error output at all.
Regards Juergen

