ODBC driver registration window

SOLVED

We are using the ODBC driver for some read-only data access on a Windows 7 workstation with a Sage 100 ERP 2013 Advanced client installation also on the machine. For some reason, the very first ODBC connection that my application attempts causes the registration window to popup, which blocks the process until it is closed. This does not happen on my development machine, but, as far as I can tell, the client installations are the same. Any idea as to what might be the cause?

  • 0 in reply to vbnet3d
    Not likely the OS orphaned a thread.

    Task Manager will not show threads.
    Google sysinternals and download the Sysinternal Suite
    Run process explorer to show all threads running off a process.

    Windows API ODBC rules for safe multi threading.
    Only allocate a single ODBC environment, then use SQLAllocConnect to get a private
    environment connection handle, then SQLConnect to open the data source.

    check for errors, time outs etc
  • 0 in reply to sevendogzero
    You are correct that it is not a normal occurrence, however it definitely did happen in this one instance. I did some careful cross-checking to verify that.

    I will check out Sysinternals - thanks for the info.

    The standard ODBC rules did not apply in this case due to the fact that the orphaned thread was on a different computer (and in any case would not have been part of the application domain, since it was spawned by another process), but I will certainly review my setup to verify that it is using the correct methodology. Thanks again for your help!