Skip to Content.
Sympa Menu

freetds - Reusing CS_COMMAND structures

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: David Nahman <vanyadog AT yahoo.com>
  • To: freetds AT franklin.metalab.unc.edu
  • Subject: Reusing CS_COMMAND structures
  • Date: Wed, 22 May 2002 18:43:56 -0700 (PDT)


Dear list,

Is it okay to re-use CS_COMMAND structures: i.e.
allocate them once, and then re-use them after
ct_results returns something other than CS_SUCCEED?

I ask because I am crashing when I reuse a CS_COMMAND
structure after a query failes. The program crashes
at line 340 in ct.c on:
if (cmd->query) free(cmd->query);


Should I be alloc'ing and dropping the structure in
between each query?

Thanks,
David Nahman


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com




Archive powered by MHonArc 2.6.24.

Top of Page