64 bit versions of SQLConnect()/SQLDisconnect() are not thread-safe

การสนทนาทั่วไป 64 bit versions of SQLConnect()/SQLDisconnect() are not thread-safe

  • Friday, September 14, 2012 7:39 AM
     
     

    I discovered that calling repeatedly SQLConnect() and SQLDisconnect() from various thread of the same process can cause a crash of the application.

    I observed this behaviour in a testing application running on Windows Server 2003 R2 64 bit SP2.

    If calls to SQLConnect() are serialized by means of a critical section, it seems the crash will not occur.

All Replies

  • Sunday, September 16, 2012 5:21 PM
     
     

    You might mention it over here.

    http://connect.microsoft.com/SQLServer

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.