Re: re-connect fails with "[DBNetlib][Connectionread (Recv()).] General network error. Check your network documentation ..."
- From: "Jeremy" <jeremy>
- Date: Fri, 21 Oct 2005 13:23:08 -0700
I guess I'm the only one with this issue. Anyway, I am now avoiding the
problem by dramatically reducing the need to disconnect and reconnect.
"Jeremy" <jeremy> wrote in message news:4357cd13$1@xxxxxxxxxxxxxxxxxxxxxxxxx
> My app allows the user to sign-in again with a different set of
> credentials and settings. Something is not working right when I
> disconnect and reconnect.
>
> function mySessionSingleton.Connect:boolean;
> begin
> with fmyconnection do begin
> if connected
> then connected := false;
>
> ...
> code to set connection string.
> ...
> try
> connected := true;
> result := true;
> except on e: exception do begin
> result := false;
> ShowMessage(e.Message);
> end;
> end;
> end;
>
> The function seems to work -- the connection is set to false, new string
> built, connected:=true succeeds. The problem comes later when trying to
> run a tadostored proc with the connection. The following error happens:
>
> "[DBNetlib][Connectionread (Recv()).] General network error. Check your
> network documentation ..."
>
> What else besides "connected:=false;" should I be doing?
>
> Jeremy
>
.
- References:
- Prev by Date: Re: How can I use a paradox tablo in a Tadoquery ????
- Next by Date: Re: Bulk Insert and ADOCommand
- Previous by thread: re-connect fails with "[DBNetlib][Connectionread (Recv()).] General network error. Check your network documentation ..."
- Next by thread: re-connect fails with "[DBNetlib][Connectionread (Recv()).] General network error. Check your network documentation ..."
- Index(es):
Relevant Pages
|