> 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
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
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
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
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
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
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.
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,
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.
>
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
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
static void init_db(sqlite3* db, char** pzErrMsg, const struct
sqlite3_api_routines* *pThunk)
{
.
}
BOOL CMyDlg::OnInitDialog()
{
.
sqlite3_auto_extension ((void (*)(void)) init_db);
}
//
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
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
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
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
16 matches
Mail list logo