2012/2/3 Jorge Eliécer Osorio Caro <jorgeliecer.oso...@gmail.com>

> Yes, that's my code:
>
> http://paste.ideaslabs.com/show/OPNHBY7xPG
>
> this the backtrace:
>
> #0  0x00000001001701d3 in initialize_niurouting ()
>

Can you try the following (but i'm just guessing here);

std::cerr << "virtual_table_name="<<virtual_table_name
  << ", network_structure_table="
  <<network_structure_table<< '\n';

after those vars are initialized, and change:

std::string table_structure(...)

to
const static std::string table_structure(...)

sqlite3_declare_vtab()[1] does not document the lifetime requirements of
the string passed to it, and it's "conceivable" that the lifetime of the
table_structure string is the problem.

:-?

[1] = http://www.sqlite.org/c3ref/declare_vtab.html

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to