[freetds] db-library : SIGSEGV on dbexit()

GUTIERREZ Pablo TESIS-TAMSA Tesgup at tamsa.com.mx
Tue Jun 10 16:04:15 EDT 2003


Hi,
I'm using FREE-TDS 0.61.1, and I'm having a problem with the DB-LIBRARY.
My code is similar to this one:

dbinit();
DBSETUSER (login,...
....

for (;;)
{
	sleep (5);
	dbproc=dbopen(login,"anything");			
	dbcmd (dbproc, "INSERT INTO ... ");
	if (dbsqlexec (dbproc) != SUCCESS)
	{
		exit (-1);
	}
	...
	...
	dbexit();

}

The first time the loop runs, it goes fine.
But the second time, it throws a SIGSEGV signal in the execution of
dbexit();
I know I should use dbclose() instead of dbexit() in this case, but, why the
exception?

Regards,
Pablo 




More information about the FreeTDS mailing list