jaswant@highland.eng.octel.com (Jaswant Bhardwaj) wrote:
>Hi netters,
>
> i have a very strange problem with ESQL/C (version 5.01.UD2)
>and I-NET (4.01).
> Problems:
>
> 1. The following listing function works most of the
> times (99%), but sometimes, it exits with the error:
> Error -349: Prepare: Database not selected yet.
> 2. I also have similiar function called (addreq) which uses
> straight 'Insert' command to insert dblines, when the above
> function fails, addreq will fail also, but with no errors.
> 3. In normal operation, addreq have to add a field (cc) which
> has a length of say 80 chars, but only 38 are inserted and
> the line is truncted.
<cut>
I noticed there is no error checking after the database selection statement, I
think this is a problem. Maybe the max number of users is occationally exceeded
and the database open fails. Error checking is important, it's a pain, but
necessary.
--------------------------------------------------------
Rob McAllister rmcall@on-ramp.ior.com
Spokane, WA
"On all good programmers a little core must dump"