|
When you have eliminated the impossible, whatever remains, however improbable, must be the truth. - Sherlock Holmes Much of debugging is about eliminating possibilities. You need to find what is causing the error, then determine the why. By commenting out the new subroutines, you will determine whether their existence is causing the problem. There are two possibilities: 1. Having the code in the program causes the problem 2. Having the code in the program does not cause the problem In the former case the error will go away when you comment out the code. In that case, uncomment one subroutine at a time, and determine which subroutine causes the problem. Once you've identified the subroutine, reverse the process and comment out one line of code at a time in that subroutine until you determine exactly which one causes the error. In the latter case, the error still occurs even with the subroutines commented out. The next step is to physically delete them and see if the problem exists. If the problem still exists, then the original code had the problem, and we can address the issue from there. Debugging is not divination or sorcery - it's simply a matter of using the scientific method to identify the code that causes the problem. The technique I've outlined is guaranteed to either isolate the code that breaks the program, or to identify the problem as existing in the original code. Joe > From: Wills, Mike N. (TC) > > .... but I am not using those routines. > > From: Joe Pluta [mailto:joepluta@PlutaBrothers.com] > > > From: Wills, Mike N. (TC) > > > > These new subroutines aren't even being touched right now > though. I don't > > see how they could affect the program. > > I know this maye seem a bit silly at first, but have you tried commenting > out all the lines in the new subroutines and then trying again? If that > WORKS, then comment each one back in and see which one breaks the program. > > If commenting out doesn't work, then you've got a different problem. > > This is my own personal method of "divide and conquer". > > Joe
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.