|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Strange output from TextMatrixOn a production machine, we had a strange output from the following
line of code: grid.TextMatrix(nRow, COL_LASTVALUE) = Format(fLastValue, strFormat) (where strFormat is ".00") nRow and COL_LASTVALUE are value, so the quirk lies elsewhere. The value that shows up occasionally in the cell is this: -1.#IND Since it is a production machine, we are unable to debug or step through the code to see what fLastValue is equal to. This line of code runs on a timer, and sometimes the values that appear are valid numbers; other times it is this strange output which I've never seen. We've seen all kinds of things in development and testing, but this one is new to me. Any ideas? On Mar 2, 10:32 am, Jeff <jr***@usa.net> wrote:
Show quoteHide quote > On a production machine, we had a strange output from the following Nevermind -- looks like it's trying to format infinite.> line of code: > > grid.TextMatrix(nRow, COL_LASTVALUE) = Format(fLastValue, strFormat) > > (where strFormat is ".00") > nRow and COL_LASTVALUE are value, so the quirk lies elsewhere. > > The value that shows up occasionally in the cell is this: -1.#IND > > Since it is a production machine, we are unable to debug or step > through the code to see what fLastValue is equal to. This line of > code runs on a timer, and sometimes the values that appear are valid > numbers; other times it is this strange output which I've never seen. > We've seen all kinds of things in development and testing, but this > one is new to me. Any ideas? "Jeff" <jr***@usa.net> wrote in message On Mar 2, 10:32 am, Jeff <jr***@usa.net> wrote:news:8ee8e36a-7b8a-4272-8dd7-68b2ad178aa9@r36g2000prf.googlegroups.com... > For the future, on a production box or any box where you cannot install a> Since it is a production machine, we are unable to debug or step > through the code to see what fLastValue is equal to. This line of > code runs on a timer, and sometimes the values that appear are valid > numbers; other times it is this strange output which I've never seen. > We've seen all kinds of things in development and testing, but this > one is new to me. Any ideas? development package, checkout WinDbg. WinDbg is the Windows debugger which can be installed with minimum impact - much like Dr. Watson or any of the 'trace' utilities. WinDbg combined with OutputDebugString, DebugBreak, and a symbol-compiled program/component can provide a ton of information, very quickly - again, in a very unobtrusive way.
Please help to translate this short Delphi code
close excel from VB6 Pset and SetPixel Bug How to get special Appdata folder How difficult is to add my menu to Windows Explorer? Use Proc with Static Variables Multiple Times OT MS Community Visibility Vista behaves differently to WordBasic command even though same version of Word! Unbelieveable code, it produces one result in VB6 run and another if compiled in a exe file ???? Wha Legacy vs Opp |
|||||||||||||||||||||||