FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Random Error with TWBrowse
Posts: 100
Joined: Wed Oct 04, 2006 04:50 PM

Random Error with TWBrowse

Posted: Wed Mar 09, 2011 03:28 AM

Hi FW Team,

We are contineously experiencing a random error in our Harbour + Fivewin application. This is a Clipper application converted to Harbour recently.

The error is happenning in the client computer accessed via Microsoft Remote DeskTop. We can not also find a way to reproduce the issue. The error will simply poped up while we normaly browse a database.

Please advice. Thank you.

    Unrecoverable error encountered. Can't continue.
     20110220
    23:22:25
    (b)TRY@16
    TWBROWSE:LBUTTONUP@1261
    TCONTROL:HANDLEEVENT@1489
    TWBROWSE:HANDLEEVENT@1656
    Alias TAXTABLE
    PC/Register+(tm) 5.3-20110218 SN0000000001
    Error BASE/1340  Zero divisor: /

This also happened while accessing other databases.

            Environment:
                        Windows XP
                        FW version 10.9
                        Harbour version included in the package.

Thank you,

Jose

Posts: 100
Joined: Wed Oct 04, 2006 04:50 PM

Re: Random Error with TWBrowse

Posted: Fri Mar 11, 2011 07:43 PM

Hi Antonio,

I just sent in your private email a picture of the error as it occurs today.

Please advice.

Thank you,

Jose

Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM

Re: Random Error with TWBrowse

Posted: Sat Mar 12, 2011 12:41 AM

José:

Looking the error message, I think your problem is on a division operation, please review your
divisor, it can't be zero.

nImport := 389.00
nDivisor := 0
nResult := nImport / nDivisor // There is an error

Try this way

IF nDivisor <> 0
nResult := nImport / nDivisor
ELSE
nResult := 0
ENDIF

Regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 100
Joined: Wed Oct 04, 2006 04:50 PM

Re: Random Error with TWBrowse

Posted: Sat Mar 12, 2011 04:16 AM

Hi Armando,

Thank you for the reply. Your sugestion may work but I did not created this object.

I think this object is part of the Fivewin library and I have no idea how make modifications in the library.

I hope Fivewin Team could advice how to work around this problem.

Gracias,

Jose

Continue the discussion