Rowset failure

Post Reply
User avatar
ctoas
Posts: 115
Joined: Wed Oct 26, 2005 2:38 pm
Location: São Paulo - Brasil
Contact:

Rowset failure

Post by ctoas »

Hello friends!

After a disconnect due to inactivity or internet failure, a rowset returns the message:

Image

I have already tried to make an attempt to reconnect and this is ok, I just wish that the error message did not appear, how to do it?
Christiano Augusto Silveira
christiano.silveira@gmail.com

MaxxTech Soluções em TI
http://www.maxxtech.com.br
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Rowset failure

Post by nageswaragunupudi »

Please try

Code: Select all | Expand


oCn:lSilent := .t.
 


But we advise it is not desirable to suppress such messages.

If the user sees this message, he will check his internet and cables. If he does not see this message, he will not know why the program is not functioning or malfunctioning.
Even you will post that program stopped functioning and neither you know or we know why the program stopped functioning/malfunctioning because we do not know the connection is broken.

We consider this message is important.

Anyway, the final decision is yours.
Regards

G. N. Rao.
Hyderabad, India
User avatar
ctoas
Posts: 115
Joined: Wed Oct 26, 2005 2:38 pm
Location: São Paulo - Brasil
Contact:

Re: Rowset failure

Post by ctoas »

Hello Rao

You are right, so is there any possibility of capturing the message and treating it my way?
For example how do I make the initial connection using:

Code: Select all | Expand


    oServer := MARIA_CONNECT( cServer, cDBName, cUser, cPassword, .F. )
   
    IF oServer == NIL
        aERROR := MARIA_CONNECTERROR()
        IF aERROR[1]==2003
            MAXXPARE("Não foi possivel conectar com o servidor, verifique sua conexão" )
            MAXXWAIT( "Encerrando o sistema", , 3 )
            QUIT
        ELSE
            MAXXPARE("Erro desconhecido ao conectar com o servidor, verifique sua conexão" )
            MAXXWAIT( "Encerrando o sistema", , 3 )
            QUIT
        ENDIF
        RETURN NIL
    ENDIF   
 
Christiano Augusto Silveira
christiano.silveira@gmail.com

MaxxTech Soluções em TI
http://www.maxxtech.com.br
Post Reply