For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
I have exactly the same issue with Oracle Instant Client 19.18 on Windows.
Visual Studio 2022 17.2.6
The same test program as listed above.
If compiled in debug mode, we hit:
Debug Assertion Failed!
Program: C:\Windows\SYSTEM32\MSVCP140D.dll File: C:\PROGRA~2\MIB055~1\2017\PROFES~1\VC\Tools\MSVC\14.13.26128\include\xstring Line: 3155
Program: C:\Windows\SYSTEM32\MSVCP140D.dll
File: C:\PROGRA~2\MIB055~1\2017\PROFES~1\VC\Tools\MSVC\14.13.26128\include\xstring
Line: 3155
Expression: string subscript out of range
In Release Mode, the connect call goes through and in the dummy program it seems the connection is correctly established.