Where it said:
"The error is actually coming from Windows, not Delphi,
when TEncoding's constructor passes $FFFF to the Win32 API GetCPInfo()
function and it fails."
Passing an invalid codepage to GetCPInfo will let the function fail
with return ERROR_INVALID_PARAMETER, the exception is actually
raised in the constructor of the TMBCSEncoding class, ICS does not use
TEncoding but uses the WinAPI directly for custom string convertions.
If there ever was an invalid codepage passed to the WinAPI you would
get back some garbage string instead of an exception.
Got it !
I'll keep looking
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be