I am testing OpenDBX to connect to MSSQL server for a project on Ubuntu Linux. I am using C/C++ and eclipse CDT IDE. I built a simple test app from the OpenDBX Web page (below without error testing shown).
odbx_init( &handle, "mssql", "172.16.232.60", "" );
odbx_bind( handle, "testdb", "testuser", "testpwd", ODBX_BIND_SIMPLE );
odbx_finish( handle );
Problem: When I run the code from shell or Run->Run I see connection established with server (wireshark). When I attempt to run from with eclipse debugger the application blocks on odbx_init(...) and I see nothing go out on wireshark (SYN/ACK). I have gdb setup as sudo, (how to debug application as root in eclipse in Ubuntu?) I also use this same platform and setup to access network with sockets with other applications we are developing.
Any ideas on why odbx_init might be blocking from debugger?
One last bit of information to add. The issue does not occur when using the C++ API. Only the C API presents the issue described.
One last bit of information to add. The issue does not occur when using the C++ API. Only the C API presents the issue described.