PB 6.40 (x64) Beta 1 SQLite database error

Post bugreports for the Windows version here
mbierly
New User
New User
Posts: 7
Joined: Thu Jan 18, 2024 1:21 am
Location: Pennsylvania, US

PB 6.40 (x64) Beta 1 SQLite database error

Post by mbierly »

The code snippet below works kind of in 6.40 Beta 1. It writes the record into the table but the debugger unexpectedly quits when running in the IDE. When running the compiled app it just quits. This same code in 6.30 writes the record and continues on in the program. The project is running with the default compiler options.

Code: Select all

    Protected SqlStmt.s = "INSERT INTO Registration(FirstName, LastName, Company, RegistrationNumber, TrialStartDate, RegistrationDate, VersionInfo) VALUES(?, ?, ?, ?, ?, ?, ?)"
    Protected DbResult.q
    
    SetDatabaseString(DbCnn::Cnn, 0, "Unregistered")
    SetDatabaseString(DbCnn::Cnn, 1, "Unregistered")
    SetDatabaseString(DbCnn::Cnn, 2, "Unregistered")
    SetDatabaseString(DbCnn::Cnn, 3, "Unregistered")
    SetDatabaseQuad(DbCnn::Cnn, 4, Date())
    SetDatabaseQuad(DbCnn::Cnn, 5, 0)
    SetDatabaseString(DbCnn::Cnn, 6, "V0.1.0")
    DbResult = DatabaseUpdate(DbCnn::Cnn, SqlStmt)
    If DbResult <= 0
      Debug DatabaseError()  
    EndIf
User avatar
mk-soft
Always Here
Always Here
Posts: 6607
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PB 6.40 (x64) Beta 1 SQLite database error

Post by mk-soft »

Please post executable pseudo code.
My Projects EventDesigner V3 / ThreadToGUI / OOP-BaseClass / Windows: Module ActiveScript
PB v3.30 / v5.75 - OS Mac Mini - VM Window Pro / Linux Ubuntu
Downloads on my OneDrive
Fred
Administrator
Administrator
Posts: 18537
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 6.40 (x64) Beta 1 SQLite database error

Post by Fred »

Any chance to have a working snippet showing the issue ?
Post Reply