title: Why doesn't my call to OdbcConnection.Open() return?
body: <p>This is my code:</p>
  
  <pre><code>    OdbcConnection odbcConn = new OdbcConnection("DSN=VIP_Company355");
  
      try
      {
          odbcConn.Open();
          int pleaseReachMe = 5;
      }
      catch (Exception ex)
      {
  
      }
  </code></pre>
  
  <p>When the debugger reaches</p>
  
  <pre><code>    odbcConn.Open(); 
  </code></pre>
  
  <p>It does not return, and it does not throw an exception. The documentation says that the default time out is 15 seconds. But after 15 seconds have passed, no exception is thrown.
  Also, if I replace my connection string with a nonsense value, it throws an error immediately.</p>
  
  <p>Any ideas?</p>
  
  <p>Edit:</p>
  
  <p>I enabled ODBC Data Source Administrator's tracing, and it left the following in the log file:</p>
  
  <pre><code>parentProcessId 1518-2754   ENTER SQLDriverConnectW 
      HDBC                0x005BF570
      HWND                0x00000000
      WCHAR *             0x63118B34 [      -3] "******\ 0"
      SWORD                       -3 
      WCHAR *             0x63118B34 
      SWORD                       -3 
      SWORD *             0x00000000
      UWORD                        0 &lt;SQL_DRIVER_NOPROMPT&gt;
  </code></pre>
  
  <p>(only the last statement is included for brevity)
  It entered the SQLDriverConnectW procedure, but it never exists it.</p>