Page 1 of 1

Random Error with TWBrowse

Posted: Wed Mar 09, 2011 3:28 am
by xhbcoder
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

Re: Random Error with TWBrowse

Posted: Fri Mar 11, 2011 7:43 pm
by xhbcoder
Hi Antonio,

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

Please advice.

Thank you,

Jose

Re: Random Error with TWBrowse

Posted: Sat Mar 12, 2011 12:41 am
by Armando
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

Re: Random Error with TWBrowse

Posted: Sat Mar 12, 2011 4:16 am
by xhbcoder
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