From: Ivan B. <iv...@cv...> - 2009-10-04 19:46:49
|
Hi all I would like to proudly announce that this branch is quite usable now. So you can test it if you want. There are still some open issues, but they are more related to tora internals then to trotl lib. - Windows debug build still does not work. I spent last month troubleshooting this. And finally I have found out tora trunk branch does not work too. MVSC debug build and some online checks into binary and these checks make program unstable. For example even such a stupid code does not work: qDebug << sql.toAscii().constData(); MSVC handles liveness of temporary objects in a different way then gcc. Calling toAscii() method returns a temporary instance of QByteArray. constData() returns "const char *". And since you have this pointer there is no need for instance of QByteArray. So MSVC deletes this instance. "const char *" still points into anonymous memory, but the debug build overwrites memory of deleted object by some binary crap. I'm afraid that there are other similar issues. Steps to reproduce: - install MSVC Express 9 - run CMAKE and generate all moc .cxx files - create a project and add all the .cpp .cxx .h files - link Tora against debug version of QT libs. Ivan |