Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-03

More explorations with tiOPF (continued)

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Frank Church

In relation to using SQLite as the persistence layer in Demo_OneToMany when I disable all the other persistence layers and sqlite as the default this error comes up.

========[ available ]=========

Show quoted text 23 lines
Sqldb_SQLLite3 ========[ default ]=========== Sqldb_SQLLite3 ============================== TApplication.HandleException Operation is not supported by this type of database Stack trace: $00560668 $00556A75 TTIPERSISTENCELAYER__CREATEDATABASE, line 248 of C:/lazarus28240/c omponents/tiOPF2/Source/Core/tiPersistenceLayers.pas $00423310 TFORMMAINONETOMANY__CREATETABLES, line 84 of FMainOneToMany.pas $004236AC TFORMMAINONETOMANY__FORMCREATE, line 149 of FMainOneToMany.pas $00419263 TCUSTOMFORM__DOCREATE, line 720 of ./include/customform.inc $0041ADF8 TCUSTOMFORM__CREATE, line 1553 of ./include/customform.inc $0041C939 TFORM__CREATE, line 2452 of ./include/customform.inc $00422148 TAPPLICATION__CREATEFORM, line 1963 of ./include/application.inc $00402A0E main, line 32 of Demo_OneToMany.lpr

Does that mean CreateDatabase is not supported for sqldb components or sqlite3 only?

PS. How do I get my programs to display a stack trace as above, so I can see where the exceptions are occuring?

Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110319/5e13de94/attachment.html>

Reply by email

Michael Van Canneyt
to Frank Church
Frank Church wrote 5 lines
In relation to using SQLite as the persistence layer in Demo_OneToMany when I disable all the other persistence layers and sqlite as the default this error comes up.

[snip]

Does that mean CreateDatabase is not supported for sqldb components or sqlite3 only?

sqlite3 only. Patches implementing this are welcome.

PS. How do I get my programs to display a stack trace as above, so I can see where the exceptions are occuring?

You should check the lineinfo or lnfodwrf units, and the BackTraceStrFunc callback.

Michael.

Reply by email

Frank Church
to Michael Van Canneyt
Michael Van Canneyt wrote 20 lines
On Sat, 19 Mar 2011, Frank Church wrote: > > In relation to using SQLite as the persistence layer in Demo_OneToMany > when I disable all the > other persistence layers and sqlite as the default this error comes up. > > [snip] > Does that mean CreateDatabase is not supported for sqldb components or > sqlite3 only? > sqlite3 only. Patches implementing this are welcome.

That would be implementing the methods in TtiDatabaseSQLDBSQLite3? Anywhere else?

Show quoted text 11 lines
> PS. How do I get my programs to display a stack trace as above, so I can > see where the > exceptions are occuring? > You should check the lineinfo or lnfodwrf units, and the BackTraceStrFunc callback.

How is it implemented, are there some compiler options required?

Would the output be in the IDE or on a console screen?

Show quoted text 8 lines
Michael. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110319/35a9439c/attachment.html>

Reply by email