This application has requested the runtime to terminate it in an unusual way

Printable View

No
Quote:

Originally Posted by ChrisW67 View Post
  • Single step through those lines, including stepping into the Qt code, and tell us exactly which causes the crash and how it arrived there?

  • When I comment out the fllowing line, there is no more crash. But I need to delete the .db file created by the sqlite database before compiling again. If I don't do that, the crash occurs agin even if I comment the line.
    Code:

    1. query.exec("create table callId (id int primary key,ext int,day varchar(10),moment varchar(5),duree int,transfer int,transferExist int,cosExist int,number int,cos int)");



    Other observations:
    [/QUOTE]
    Thank you ChrisW67. I've just applied all your remarks. they were really helpful. But, I still have a the error message.
    Here is my code.

    Code:

    1. query.exec("create table callId (id integer primary key autoincrement,ext int,day varchar(10),moment varchar(5),duree int,transfer int,transferExist bool,cosExist bool,number varchar(20),cos int)");
    2. query.exec("insert into callId values(NULL, 3300,'2011-10-28','17:25',128,3333,0,1,0022921301074,NULL)");
    3. query.exec("insert into callId values(NULL, 3310,'2011-10-29','00:29',128,NULL,1,0,002217780216,10)");


    Thanks Norobro to have replied to me.
  • 31st October 2011, 01:49
    ChrisW67
    Re: This application has requested the runtime to terminate it in an unusual way
    Does the problem go away if you use ":memory:" as the database file name? That is make a transient, in-memory database.