Author | Topic: Incremental Operand | |
---|---|---|
Donald R. Keating | Incremental Operand on Wed, 01 Mar 2006 16:02:35 -0500 Hi Y'all, I have a line of code in an application being used by many that probably hit this line at least several hundred times a day. The users are accessing the application through a Citrix Server across the internet. During a 25 day period it crashed the application 6 times. Here's code snippet. xPROSP:= 0 ; xNL:= 0 ; xTOTAL:= 0 ; (cAlias)->(dbgotop()) while !(cAlias)->(eof()) ++xTOTAL xPROSP+= if(!empty((cAlias)->PROSPECT),1,0) xNL+= if((cAlias)->TAG1== "Y",1,0) (cAlias)->(dbskip()) end Here's the error message. -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ERROR LOG of "D:\Remote\EEREMOTE.EXE" Version: 4.04c5 Error DateTime: 01/22/2006 - 17:29:32 Xbase++ version : Xbase++ (R) Version 1.82.306 Operating system : Windows NT 04.00 Build 01381 Service Pack 6 ---------------------------------------------------------------------- oError:args : -> VALTYPE: C VALUE: 417 oError:canDefault : N oError:canRetry : N oError:canSubstitute: N oError:cargo : NIL oError:description : Parameter has a wrong data type oError:filename : oError:genCode : 2 oError:operation : ++<417> oError:osCode : 0 oError:severity : 2 oError:subCode : 3 oError:subSystem : BASE oError:thread : 5 oError:tries : 0 ---------------------------------------------------------------------- CALLSTACK: ---------------------------------------------------------------------- Called from TDALLBROWSET(752) -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Line 752 is ++xTOTAL. The value of xTOTAL is different in each of the 6 error messages, ranging from 210 to 2213. How is xTOTAL being changed from a number to a character variable? Thanks, >don< | |
Donald R. Keating | Re: Incremental Operand on Wed, 01 Mar 2006 16:06:02 -0500 Oops! wrong newsgroup - see xbase++ generic. Sorry. >don< On Wed, 1 Mar 2006 16:02:35 -0500, Donald R. Keating wrote: > Hi Y'all, > > I have a line of code in an application being used by many that probably > hit this line at least several hundred times a day. The users are > accessing the application through a Citrix Server across the internet. > > During a 25 day period it crashed the application 6 times. Here's code > snippet. > > xPROSP:= 0 ; xNL:= 0 ; xTOTAL:= 0 ; (cAlias)->(dbgotop()) > while !(cAlias)->(eof()) > ++xTOTAL > xPROSP+= if(!empty((cAlias)->PROSPECT),1,0) > xNL+= if((cAlias)->TAG1== "Y",1,0) > (cAlias)->(dbskip()) > end > > > Here's the error message. > > -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ > ERROR LOG of "D:\Remote\EEREMOTE.EXE" Version: 4.04c5 > Error DateTime: 01/22/2006 - 17:29:32 > > Xbase++ version : Xbase++ (R) Version 1.82.306 > Operating system : Windows NT 04.00 Build 01381 Service Pack 6 > ---------------------------------------------------------------------- > oError:args : > -> VALTYPE: C VALUE: 417 > oError:canDefault : N > oError:canRetry : N > oError:canSubstitute: N > oError:cargo : NIL > oError:description : Parameter has a wrong data type > oError:filename : > oError:genCode : 2 > oError:operation : ++<417> > oError:osCode : 0 > oError:severity : 2 > oError:subCode : 3 > oError:subSystem : BASE > oError:thread : 5 > oError:tries : 0 > ---------------------------------------------------------------------- > CALLSTACK: > ---------------------------------------------------------------------- > Called from TDALLBROWSET(752) > -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ > > Line 752 is ++xTOTAL. > > The value of xTOTAL is different in each of the 6 error messages, ranging > from 210 to 2213. > > How is xTOTAL being changed from a number to a character variable? > > Thanks, > > > >don< |