[sqlite] sqlite3_auto_extension + custom FTS5 tokenizer

2016-05-12 Thread Jan Berkel
> I?m currently implementing a custom FTS5 tokenizer which I?d like to > automatically register for each db connection. > > So I tried to register an extension hook with sqlite3_auto_extension but when > my code is called the FTS_* modules have not been initialized, because > sqlite3Fts5Init

[sqlite] sqlite3_auto_extension + custom FTS5 tokenizer

2016-05-11 Thread Dan Kennedy
On 05/11/2016 05:24 PM, Jan Berkel wrote: > I?m currently implementing a custom FTS5 tokenizer which I?d like to > automatically register for each db connection. > > So I tried to register an extension hook with sqlite3_auto_extension but when > my code is called the FTS_* modules have not been i

[sqlite] sqlite3_auto_extension + custom FTS5 tokenizer

2016-05-11 Thread Jan Berkel
I?m currently implementing a custom FTS5 tokenizer which I?d like to automatically register for each db connection. So I tried to register an extension hook with sqlite3_auto_extension but when my code is called the FTS_* modules have not been initialized, because sqlite3Fts5Init() is called *a

Re: [sqlite] sqlite3_auto_extension - unloaded DLL issue

2013-07-15 Thread Dušan Paulovič
Thank you MR. Hipp... Dušan 2013/7/15 Richard Hipp > On Sat, Jul 13, 2013 at 5:14 AM, Dušan Paulovič > wrote: > > > Hello, > > we are currently facing problem with Access violation exception caused by > > function sqlite3_open_v2 trying to load extensions from unloaded DLLs. > > > > New inte

Re: [sqlite] sqlite3_auto_extension - unloaded DLL issue

2013-07-15 Thread Richard Hipp
On Sat, Jul 13, 2013 at 5:14 AM, Dušan Paulovič wrote: > Hello, > we are currently facing problem with Access violation exception caused by > function sqlite3_open_v2 trying to load extensions from unloaded DLLs. > New interface added: sqlite3_cancel_auto_extension(X). You can use this to cance

Re: [sqlite] sqlite3_auto_extension - unloaded DLL issue

2013-07-13 Thread Jay A. Kreibich
On Sat, Jul 13, 2013 at 11:14:51AM +0200, Du?an Paulovi? scratched on the wall: > Hello, > we are currently facing problem with Access violation exception caused by > function sqlite3_open_v2 trying to load extensions from unloaded DLLs. > Also it would be fine to be able to load static extension

Re: [sqlite] sqlite3_auto_extension - unloaded DLL issue

2013-07-13 Thread Simon Slavin
On 13 Jul 2013, at 3:33pm, Jay A. Kreibich wrote: > That would not actually solve the problem. No matter if SQLite is in > a DLL or linked statically in the app, if there is sone master copy > of SQLite you're going to have the same issues as application plugins > are loaded and unloaded.

Re: [sqlite] sqlite3_auto_extension - unloaded DLL issue

2013-07-13 Thread Stephan Beal
On Sat, Jul 13, 2013 at 11:14 AM, Dušan Paulovič wrote: > because that would uninstall also all entry points of another plugins. > So it happens, that SQlite holds entry point(s) to DLL which is unloaded. > - Now, if user executes any command from remaining DLL, it invokes > sqlite3_open_v2,

Re: [sqlite] sqlite3_auto_extension - unloaded DLL issue

2013-07-13 Thread Jay A. Kreibich
On Sat, Jul 13, 2013 at 01:28:28PM +0100, Simon Slavin scratched on the wall: > > On 13 Jul 2013, at 10:14am, Dušan Paulovič wrote: > > > - These plugins can be loaded and uloaded by user. > > - Main application itself does not use SQLite, so each plugin using SQLite > > must be linked to it. >

Re: [sqlite] sqlite3_auto_extension - unloaded DLL issue

2013-07-13 Thread Simon Slavin
On 13 Jul 2013, at 10:14am, Dušan Paulovič wrote: > - These plugins can be loaded and uloaded by user. > - Main application itself does not use SQLite, so each plugin using SQLite > must be linked to it. This is a defect in the way plugins are implemented. The easiest cure would be to have Ben

[sqlite] sqlite3_auto_extension - unloaded DLL issue

2013-07-13 Thread Dušan Paulovič
Hello, we are currently facing problem with Access violation exception caused by function sqlite3_open_v2 trying to load extensions from unloaded DLLs. How it happens: - There are 2 (or more) plugin DLLs in main application which are linked to SQLite. - These plugins can be loaded and uloaded by u

[sqlite] sqlite3_auto_extension() memory leaks

2011-12-11 Thread 刘以舟
static void init_db(sqlite3* db, char** pzErrMsg, const struct sqlite3_api_routines* *pThunk) { . } BOOL CMyDlg::OnInitDialog() { . sqlite3_auto_extension ((void (*)(void)) init_db); } //

[sqlite] sqlite3_auto_extension

2009-06-19 Thread Jean-Christophe Deschamps
Hi Nico, Thank you for your answer. >It's obvious from the function prototype (no DLL/DSO file name >argument). Yes, of course. I'm not confusing a string holding a filename and a function pointer! >However, you can use sqlite3_load_extension() instead per-DB connection, >OR, you can even do

Re: [sqlite] sqlite3_auto_extension

2009-06-18 Thread Nicolas Williams
On Thu, Jun 18, 2009 at 04:53:13PM +0200, Jean-Christophe Deschamps wrote: > Having spent "some" time trying to have this function work with dll > extensions, I've come to the [I hope 'wrong'] conclusion that it's > unusable in such case. Indeed, the docs mentions "statically linked > extension

[sqlite] sqlite3_auto_extension

2009-06-18 Thread Jean-Christophe Deschamps
Hi, Having spent "some" time trying to have this function work with dll extensions, I've come to the [I hope 'wrong'] conclusion that it's unusable in such case. Indeed, the docs mentions "statically linked extension". Can someone confirm it won't auto load extensions when they reside in dll

[sqlite] sqlite3_auto_extension

2008-11-08 Thread Maurí­cio
Hi, What is sqlite3_auto_extension used for? What kind of extensions can it hold; and what are extensions? Thanks, Maurício ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users