On Wed, Sep 10, 2014 at 11:53 AM, vendomele <[email protected]> wrote:

> I developed a loadable extension, but after the execution of the callback
> "xBestIndex" there is a crash.
>
> So I made it simple for this callback by implementing only one line that
> returns SQLITE_OK.
>
> The crash still persists.
>
> With a development tool, the crash occurred in an external instruction to
> my
> dll:
> "dword ptr and [ebp- $ 04] $ 00"
>
> Anyone have an idea?
>

Can you run a simple user-defined-function from that loadable extension?
That's a simpler use-case than trying to write a vtable impl.

Did you use the macros mentioned by http://www.sqlite.org/loadext.html ?

Those macros ensure that the loaded extension uses the same SQLite code
than the host program (the .exe on Windows), which can have crashing
consequences if not properly defined.

Also, you must typically compile your extension with the same SQLite3 used
to compile the host app. The API is mostly stable, but that's an obvious
step to double-check in case of crashes like here. --DD
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to