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

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

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

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

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

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 > >

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

[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