Re: re-connect fails with "[DBNetlib][Connectionread (Recv()).] General network error. Check your network documentation ..."



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
>


.



Relevant Pages

  • Re: Virus-infected hosts list
    ... >> number of my IP by one if I disconnect and reconnect. ... >> thinks if he disconnects and reconnects he'll get a better connection. ... > making headway against the virus deluge this way. ...
    (Debian-User)
  • Re: Reconnecting at dropped connection
    ... Reconnect to disconnected sessions only works reliable when the ... connection a little more stable ... I've had to enable auto disconnect after 30 ...
    (microsoft.public.windows.terminal_services)
  • Re: ZAP, disconnecting and reconnecting
    ... It seems that I can disconnect and reconnect to my ISP (56K Modem ... connection) with no problem, as long as I do it myself. ...
    (comp.security.firewalls)
  • Re: Virus-infected hosts list
    ... > number of my IP by one if I disconnect and reconnect. ... > thinks if he disconnects and reconnects he'll get a better connection. ... `'` proud Debian admin and user ...
    (Debian-User)
  • re-connect fails with "[DBNetlib][Connectionread (Recv()).] General network error. Check your n
    ... Something is not working right when I disconnect and ... reconnect. ... code to set connection string. ... The function seems to work -- the connection is set to false, ...
    (borland.public.delphi.database.ado)