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 Systems

________________________________
From: [email protected] [[email protected]] on 
behalf of Peter Aronson [[email protected]]
Sent: Wednesday, January 04, 2012 12:02 PM
To: [email protected]
Subject: EXT :[sqlite] SegV at sqlite3_open() (Was: Re: How to sort within a 
text field)

> 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 at that point, the sqlite3_api variable
is a NULL pointer.  Thus a SegV without a stack trace.

Best regards,

Peter
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to