Important: Please read the Qt Code of Conduct -

[SOLVED]QList ASSERT failure (after program packadge installation)

  • I made a setup packadge of some program in Visual Studio 2008. So on my PC after installation everything works well. On others PC when you just click on database connection option it just crashes.

    Well, here's the error
    ! here's the error )!

    I think it appears at this line

    @ database = QSqlDatabase::addDatabase("QPSQL");@

    in database initialization part because of message about DB apperas and everything seems work fine until this line.

    Here's full function

    @ void DatabaseManagement::initDatabase(){
    QMessageBox::information(this, "error tracking step 5", " DB ADDED");

     database = QSqlDatabase::addDatabase("QPSQL");
     QStringList sdrivers = QSqlDatabase::drivers();
     //output all avalible drivers
     QString driver = sdrivers[0];
     for(int i = 0; i< sdrivers.size();i++)
      QMessageBox::information(this, "Driver info", sdrivers[i]);

    database variable here is global for DatabaseManagement class.
    Also in this class I got getDatabase function which returns database variable and I use it in other class, let say in mainClass (in case if this could be cause of the problem)

  • Well, the problem was with sqldrivers! I created folder sqldrivers in the the program folder, added there qsqlpgsqld.dll files and binded libintl libpq dlls, and it works now!

Log in to reply