Random Error with TWBrowse

Random Error with TWBrowse

Postby xhbcoder » Wed Mar 09, 2011 3: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
xhbcoder
 
Posts: 100
Joined: Wed Oct 04, 2006 4:50 pm
Location: USA

Re: Random Error with TWBrowse

Postby xhbcoder » Fri Mar 11, 2011 7: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
xhbcoder
 
Posts: 100
Joined: Wed Oct 04, 2006 4:50 pm
Location: USA

Re: Random Error with TWBrowse

Postby Armando » 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
User avatar
Armando
 
Posts: 3217
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Random Error with TWBrowse

Postby xhbcoder » Sat Mar 12, 2011 4: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
xhbcoder
 
Posts: 100
Joined: Wed Oct 04, 2006 4:50 pm
Location: USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 87 guests