Skip to Content.
Sympa Menu

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

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: GUTIERREZ Pablo TESIS-TAMSA <Tesgup AT tamsa.com.mx>
  • To: "'freetds AT lists.ibiblio.org'" <freetds AT lists.ibiblio.org>
  • Subject: [freetds] db-library : SIGSEGV on dbexit()
  • Date: Tue, 10 Jun 2003 15:04:15 -0500

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 





Archive powered by MHonArc 2.6.24.

Top of Page