ouch67 wrote:Well I tried your code and I don't see a message box either, so apparently it's crashing before wxSqlite3 takes over but the crash is on that line. Hmm...
The code of the method GetTable takes measures to not access a null pointer. The status of the database is checked internally, before calling the respective SQLite function. That is, there is no obvious reason that wxSQLite3 could crash within method GetTable.
Have you checked that your database pointer is valid before calling the GetTable method? You wouldn't see a wxSQLite3Exception thrown if the database pointer is invalid, because your application would crash on calling the method.
Another possibility would be that calling the respective SQLite function fails. This could happen if you use a SQLite DLL which does not contain the function sqlite3_get_table. Unlikely, but not impossible.
Please use a debugger to step through your application to verify that your database pointer is valid and that you can step into method GetTable and determine at which line within wxSQLite3 your application crashes, if you can step into GetTable.
Do you get any error messages when your application crashes? If yes, tell which ones.
For testing you could issue a GetTable call immediately after you opened the database, that is, before passing any pointers around. Does this work? Or does it crash, too?
Last but not least, describe your environment: operating system, wxWidgets version, compiler ...