Re: [sqlite] SegV at sqlite3_open() (Was: Re: How to sort within a text field)

2012-01-05 Thread Peter Aronson
> Or is there some other init function that can be called to maintain it in > one file? I don't know about that. However, I can see two approaches you could use to keep them in the same file: (1) Since your main is at the bottom of the file, right before it (just after #ifdef MAIN, say), add

Re: [sqlite] SegV at sqlite3_open() (Was: Re: How to sort within a text field)

2012-01-05 Thread Black, Michael (IS)
Yup...putting the main in a separate file fixed it. Thanks. Or is there some other init function that can be called to maintain it in one file? Michael D. Black Senior Scientist Advanced Analytics Directorate Advanced GEOINT Solutions Operating Unit Northrop Grumman Information

[sqlite] SegV at sqlite3_open() (Was: Re: How to sort within a text field)

2012-01-04 Thread Peter Aronson
> But it segfaults on me at sqlite3_open() and I can't figure out why...there's >no stack info. That's because you have it in the same file that sqlite3ext.h is included in, and the call to sqlite3_open() is really to sqlite3_api->open(), but since you haven't executed SQLITE_EXTENSION_INIT2