[GRASS-user] Setting GRASS environment variable in a C program -
step two
Glynn Clements
glynn at gclements.plus.com
Wed May 26 11:12:36 EDT 2010
rabotin wrote:
> After that , using db_open_database(driver,&handle) command launch a
> segmentation fault. Is it because my handle is a null value ?
Possibly; change:
> std::cout << &driver << std::endl;
to:
> std::cout << driver << std::endl;
to confirm this.
> Are some commands missing to access or start dbf driver in my script ?
I can't see anything wrong, other than failing to check the return
value from db_start_driver().
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list