Board index » cppbuilder » Disabling CodeGuard cauuse application runtime error [list index out of bounds]
Matt Ross
![]() CBuilder Developer |
Matt Ross
![]() CBuilder Developer |
Disabling CodeGuard cauuse application runtime error [list index out of bounds]2005-11-01 06:32:46 PM cppbuilder6 This is an odd one. I have an application that runs fine if CodeGuard is enabled for the project, everything ticked. However, if I disable it, recompile and then run I almost immediately get a runtime error: list index out of bounds -1. I cannot think of any reason why leaving CodeGuard enabled would suppress a bug in my code, if that's what it is. Any idea what's going on? CodeGuard reports no problem with the application when it is enabled. I can post code samples if that would be of any use. Thanks. -- Matt Ross -=I haven't lost my mind; it's backed up on tape.=- |
Alan Bellingham
![]() CBuilder Developer |
2005-11-01 07:07:41 PM
Re:Disabling CodeGuard cauuse application runtime error [list index out of bounds]
"Matt Ross" < XXXX@XXXXX.COM >wrote:
QuoteThis is an odd one. I have an application that runs fine if CodeGuard is the same compilation options. Alan Bellingham -- ACCU Conference 2006 - 19-22 April, Randolph Hotel, Oxford, UK |
Matt Ross
![]() CBuilder Developer |
2005-11-01 07:20:20 PM
Re:Disabling CodeGuard cauuse application runtime error [list index out of bounds]
"Alan Bellingham" < XXXX@XXXXX.COM >wrote in message
Quote"Matt Ross" < XXXX@XXXXX.COM >wrote: any other files I could safely delete [pre-compiled headers are already set to None]? BTW forgot to mention this is C++ Builder 6 Enterprise patched to update4. -- Matt Ross -=I haven't lost my mind; it's backed up on tape.=- {smallsort} |
maeder
![]() CBuilder Developer |
2005-11-02 01:10:45 AM
Re:Disabling CodeGuard cauuse application runtime error [list index out of bounds]
"Matt Ross" < XXXX@XXXXX.COM >writes:
QuoteThis is an odd one. I have an application that runs fine if CodeGuard is that triggers the error under some circumstances but not under others. QuoteAny idea what's going on? CodeGuard reports no problem with the |
AlexB
![]() CBuilder Developer |
2005-11-02 11:37:04 AM
Re:Disabling CodeGuard cauuse application runtime error [list index out of bounds]
Matt Ross wrote:
Quote>Possibly you have an object file that didn't get rebuilt. Try killing - Project->Export make file; - Close project in IDE; - "make YourPrj.mak" in your project directory. Alex. |
Zach Saw
![]() CBuilder Developer |
2005-11-02 04:46:20 PM
Re:Disabling CodeGuard cauuse application runtime error [list index out of bounds]QuoteAn uninitialized variable could easily be the reason. with patterns when you free it. So it essentially does your initialization for you. Removing it simply puts it to an unknown state. |