Re: [sqlite] Re: Callback issue - using pointer as argument

2008-01-30 Thread David HAUTBOIS
It works better. Thanks. David. Igor Tandetnik wrote: David Hautbois <[EMAIL PROTECTED]> wrote: char * get_config_value (sqlite3 * db, char * config_name) { TabResult res; rc= sqlite3_exec( db, query, exec_get_config_value_cb , , ); Strings passed to the callback are valid only

[sqlite] Re: Callback issue - using pointer as argument

2008-01-29 Thread Igor Tandetnik
David Hautbois <[EMAIL PROTECTED]> wrote: char * get_config_value (sqlite3 * db, char * config_name) { TabResult res; rc= sqlite3_exec( db, query, exec_get_config_value_cb , , ); Strings passed to the callback are valid only within the callback. As soon as the callback returns, the