freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- 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
-
Reusing CS_COMMAND structures,
David Nahman, 05/22/2002
- <Possible follow-up(s)>
- Re: Reusing CS_COMMAND structures, Michael Peppler, 05/23/2002
- RE: Reusing CS_COMMAND structures, Sam Denton, 05/23/2002
- RE: Reusing CS_COMMAND structures, Lowden, James K, 05/23/2002
Archive powered by MHonArc 2.6.24.