Board index » cppbuilder » Where was my program interrupted
Feico
CBuilder Developer |
Feico
CBuilder Developer |
Where was my program interrupted2004-07-05 10:17:34 PM cppbuilder51 When my program crashes, it often shows a subroutine, for example in dstring.h: char& __fastcall operator [](const int idx) { ThrowIfOutOfRange(idx); // Should Range-checking be optional to avoid overhead ?? Unique(); // Ensure we're not ref-counted return Data[idx-1]; } How do I find the error in my program? |
Andrue Cope [TeamB]
CBuilder Developer |
2004-07-05 10:24:56 PM
Re:Where was my program interrupted
Feico wrote:
QuoteHow do I find the error in my program? window to examine the state of variables at the various points in the call stack. You then compare those variables with what you as the programmer would expect to be in them. -- Andrue Cope [TeamB] [Bicester, Uk] info.borland.com/newsgroups/guide.html |
Feico
CBuilder Developer |
2004-07-05 10:33:03 PM
Re:Where was my program interrupted
On 5 Jul 2004 07:24:56 -0700, "Andrue Cope [TeamB]" < XXXX@XXXXX.COM >wrote in
borland.public.cppbuilder.ide: Quote>How do I find the error in my program? error occurs. {smallsort} |
Andrue Cope [TeamB]
CBuilder Developer |
2004-07-05 10:50:01 PM
Re:Where was my program interrupted
Feico wrote:
QuoteWell, it shows in which subroutine the error occurred, but not the problem. We get this a lot as well and it is a PITA. Oddly on the occasions I've mentioned it here before few other people (no one to my recollection) has ever reported seeing this. I have no workaround and can only hope that it isn't a function that gets called a lot or else you can determine the entry conditions that led up to the AV. Please note that when the de{*word*81} is stopped in this condition you should be wary of beleiving the values reported in variables for the current point of execution. -- Andrue Cope [TeamB] [Bicester, Uk] info.borland.com/newsgroups/guide.html |