Anybody know if it is possible to dynamically load the sqlite library ? At the moment my app aborts if the lib is not found at startup, I would like to have control of this for a later stage
Thanks - SteveG

Mailing lists / lazarus / 2009-07
7 messages · 4 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Anybody know if it is possible to dynamically load the sqlite library ? At the moment my app aborts if the lib is not found at startup, I would like to have control of this for a later stage
Thanks - SteveG
2009/7/13 SteveG :
Anybody know if it is possible to dynamically load the sqlite library ? At the moment my app aborts if the lib is not found at startup, I would like to have control of this for a later stage
You can use sqlite3dyn unit, then use TryInitialiseSqlite, InitialiseSQLite, ReleaseSQLite funcs. See fpc sources for more info. I don't know how to do this with sqldb, though.
Henry
Thanks Henry - will do a little study on these now
2009/7/13 SteveG : You can use sqlite3dyn unit, then use TryInitialiseSqlite,…
Op maandag 13-07-2009 om 14:40 uur [tijdzone +0100], schreef Henry Vermaak:
You can use sqlite3dyn unit, then use TryInitialiseSqlite, InitialiseSQLite, ReleaseSQLite funcs. See fpc sources for more info. I don't know how to do this with sqldb, though.
sqldb already uses the sqlite3dyn unit. (Or else Lazarus woudn't start on all machines without sqlite installed)
Joost
2009/7/15 Joost van der Sluis :
Of course - you're right.
Henry
Op maandag 13-07-2009 om 14:40 uur [tijdzone +0100], schreef Henry Vermaak: sqldb already…
so.. ermmm... sqlbd == sqlite?? i thought they were separate entities ?? :?
2009/7/15 waldo kitty :
No, sqldb is the lazarus component. It supports sqlite, as well as mysql, oracle, postgres, etc.
Henry