> Le 6 avr. 2016 ? 03:11, Rail Jon Rogut <sqlite3 at platinumsamples.com> a
> ?crit :
>
> So I statically compile Sqlite3 version 3.8.7.2 into my DLL using /MT
>
> I use
>
> #define SQLITE_THREADSAFE 1
>
> #define HAVE_USLEEP 1
>
> When I use my DLL it works perfectly fine? However...
>
> If I add a 3rd party LIB which also has Sqlite3 version 3.6.23.1 (I believe)
> statically linked into it (also using /MT) -- this library opens a database
> and writes to it while my DLL is running. While this is happening, I can
> open my database but I get an SQLITE_IOERR_ACCESS error returned if I call
> sqlite3_prepare_v2().
>
> I have an error log callback which generates:
>
> sql = pragma table_info('mytablename');
> Sqlite3 log: 3338 Err: os_win.c:37516: (0)
> winAccess(C:\MyAppPath\Databases\mydatabase.db-journal) - The operation
> completed successfully.
> Sqlite3 log: 3338 Err: disk I/O error
>
> The database I'm using is separate from the database running in the 3rd party
> lib.
>
> Anyone have any ideas on how to deal with the conflict?
>
> Thanks,
>
> Rail
Could you show the exports of 'their' DLL (using depends.exe for instance)?
--
Meilleures salutations, Met vriendelijke groeten, Best Regards,
Olivier Mascia, integral.be/om