Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]QList ASSERT failure (after program packadge installation)
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 774 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    danil_mark
    wrote on last edited by
    #1

    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
    !http://i.stack.imgur.com/uZYlX.png( 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)

    1 Reply Last reply
    0
    • D Offline
      D Offline
      danil_mark
      wrote on last edited by
      #2

      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!

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved