adodbapi - Subtle crash
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
There is a subtle crash that can occur related to time.sleep(>10) and adodbapi.connect() calls, the second time will crash,
attached there is the simplest test case to crash it and various comments explaining the crash behavior test enviroement and stacktraces.
i hope will be useful to find the right solution, i've only found a bad workarond, without calling adodbapi.close() the crash doesn't happens.
thank you in advice
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Old Bugs - new issues at https://github.com/mhammond/pywin32/issues"
crash test case
I haven't had a chance to repro this yet as the connection string doesn't work on my dev box.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Old Bugs - new issues at https://github.com/mhammond/pywin32/issues"
The connection string needs sqlserver express installed on the machine, but the same happens also with oracle oledb provider, this are the two providers i've tested on, but could be the crash occurs with any provider
Crash duplicated on Windows Vista 32 bit with SQL Server (local).
Does NOT crash in IronPython, indicating that this is probably a pywin32 error.
Investigation continues.
--
Vernon
fixed by removing CoUninitialize() and removing reference to Dispatch structure after closing.