QT QODB數(shù)據(jù)庫退出時出現(xiàn)錯誤:
"QODBCDriver::disconnect: Unable to disconnect datasource" ?? ?Error: "[Microsoft][ODBC SQL Server Driver][Shared Memory]ConnectionClose (closesocket()). [Microsoft][ODBC SQL Server Driver][Shared Memory]一般性網(wǎng)絡錯誤。請檢查網(wǎng)絡文檔。"
"QODBCDriver::cleanup: Unable to free connection handle" ?? ?Error: "[Microsoft][ODBC 驅動程序管理器] 函數(shù)序列錯誤"
"QODBCDriver::cleanup: Unable to free environment handle" ?? ?Error: "[Microsoft][ODBC 驅動程序管理器] 函數(shù)序列錯誤"文章來源:http://www.zghlxwxcb.cn/news/detail-805924.html
原因:沒有關閉QSqlDatabase直接退出
db.close();文章來源地址http://www.zghlxwxcb.cn/news/detail-805924.html
到了這里,關于解決QODBCDriver::disconnect: Unable to disconnect datasource的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!