Re: Unable to do a repeat calculation without closing down and starting up again.


[ Delphi Forum ]

Posted by webmaster Guido on January 21, 2004 at 15:48:36:

In Reply to: Unable to do a repeat calculation without closing down and starting up again. posted by Lionel P12219 on January 20, 2004 at 22:05:56:

: I don't know if this is a memory thing or not but I have two math routines on one page with each having an event button and a clearing button, the variables are not the same in each routine and the Edit boxes are numbered different in each routine and I can clear the data entry and results out of each edit box but I am not able to do a repeat calculation without closing down and starting the application up again. I have tried zeroing out the variables before each repeat but still get no second results or I get the wrong results. I feel sure that others have run into this type proplem of problem and I would be interested in knowing how to handle it.
------------------

To debug this type of problem, it's best to cut it up in smaller pieces.

1. Make a copy of the entire project, let's say Project2.
In Project2, remove everything what has to do with the SECOND calculation, and check if the error still appears.

2. Make another copy of the entire project, let's say Project3.
In Project3, remove everything what has to do with the FIRST calculation, and check if the error still appears.

In other words, make the testversion of the program smaller and smaller, until you have isolated the error.

Let me know what the results are, if possible with some example code, and I can have a closer look at it.


Related Articles and Replies:


[ Delphi Forum ]