Sqlite problem.
-
Hi,
What does db.lastError().text() return ?
-
but linux works well, because that windows will not work, this using qt5.3 in windows and linux
[quote author="andreyc" date="1401229058"]I guess that default QSqlDatabase is not set when your dll is creating QSqlQuery.Can you just pass the QSqlDatabase in the dll or call createConnection() inside dll.[/quote]
-
[quote author="topocc" date="1401238999"]but linux works well, because that windows will not work, this using qt5.3 in windows and linux[/quote]
You are using share objects (DLLs) if I'm not mistaken.
Linux and Windows have different memory allocation policies for the shared objects.
I don't have Windows box, so it is just my theory, that the difference is the reason for the error that you have on Windows.
To check this theory try to put database open and query in a single executable file. -
But windows works versión qt5.2
[quote author="andreyc" date="1401242191"][quote author="topocc" date="1401238999"]but linux works well, because that windows will not work, this using qt5.3 in windows and linux[/quote]
You are using share objects (DLLs) if I'm not mistaken.
Linux and Windows have different memory allocation policies for the shared objects.
I don't have Windows box, so it is just my theory, that the difference is the reason for the error that you have on Windows.
To check this theory try to put database open and query in a single executable file.
[/quote] -
[quote author="topocc" date="1401242735"]But windows works versión qt5.2[/quote]
Well, if your source code is the same for both versions of Qt and one version doesn't work then it is possible that you have discovered a bug (regression) in Qt.
I would suggest to create a minimal repro example and submit a bug report."Here":http://qt-project.org/wiki/ReportingBugsInQt is how to report the bugs in Qt.
-
Where are you running this program when you get the error ? Through Qt Creator ?
-
example de bug report to https://bugreports.qt-project.org/browse/QTBUG-39424