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.
You might mention it over here.
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.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?