Thread: [Dev-C++] Abnormal program termination
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Nicholas O. R. <exc...@mi...> - 2004-01-28 20:13:58
|
Hey there! I'm writing a string class as part of a school project. Sometimes when I compile the class in a test program and run it, I get an error message saying "NSTRING.EXE has generated errors and will be closed by Windows. You will need to restart the program. An error log is being created." If I re-compile with the exact same source code, the problem goes away and the test program runs perfectly. I'm using version 4.9.8.5 on Windows 2000. I have about 1300 lines of well-spaced code, but it seems unlikely to me that this could be too much for mingw or for my computer to handle. Any ideas? Nicholas |
|
From: Per W. <pw...@ia...> - 2004-01-30 18:12:44
|
If you make changes to header files - changing declaration of structs for example - you might get into problems, since Dev-C++ depending on dependency settings sometimes doesn't recompile all affected source files. The result then will most of the time be a spectacular failure of the program. A complete rebuild later and everything is back to normal. By the way, please enlighten me what 'well-spaced code' is, and how that affects the hehaviour of the program. /Per W On Wed, 28 Jan 2004, Nicholas O. Rawlings wrote: > Hey there! > > I'm writing a string class as part of a school project. Sometimes when I > compile the class in a test program and run it, I get an error message > saying "NSTRING.EXE has generated errors and will be closed by Windows. You > will need to restart the program. An error log is being created." If I > re-compile with the exact same source code, the problem goes away and the > test program runs perfectly. I'm using version 4.9.8.5 on Windows 2000. I > have about 1300 lines of well-spaced code, but it seems unlikely to me that > this could be too much for mingw or for my computer to handle. Any ideas? > > Nicholas > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Watson D. <wa...@wa...> - 2004-01-30 21:45:02
|
Thursday, January 29, 2004, 1:45:50 AM, you wrote: PW> By the way, please enlighten me what 'well-spaced code' is, and how that PW> affects the hehaviour of the program. "Well-spaced code" or "Agoracode" is code that has lots of room on the disk. And has its own little pharmaceutical setup. As opposed to "ill-spaced code" or "claustrocode", which resides on a full disk. And is sober. HTH. <joke> Watson (the pencil neck) Davis |
|
From: Michael C U. <mu...@cb...> - 2004-01-30 23:43:25
|
More then likely, you have a pointer problem somewhere. ie: You forgot to dereference a pointer before writing to it. Errors in pointer use are the single most common cause of of these kinds of errors in Windows. Mike On Wed, 28 Jan 2004, Nicholas O. Rawlings wrote: > Hey there! > > I'm writing a string class as part of a school project. Sometimes when I > compile the class in a test program and run it, I get an error message > saying "NSTRING.EXE has generated errors and will be closed by Windows. You > will need to restart the program. An error log is being created." If I > re-compile with the exact same source code, the problem goes away and the > test program runs perfectly. I'm using version 4.9.8.5 on Windows 2000. I > have about 1300 lines of well-spaced code, but it seems unlikely to me that > this could be too much for mingw or for my computer to handle. Any ideas? > > Nicholas > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Zonnet <gko...@zo...> - 2004-01-31 00:40:42
|
Hi Nicholas, I think you should look into dependencies. It might happen that some files are compiled and other are not. The linker will not always complain about this. This means that some functions/methods that are called are really of the wrong signature and make a mess. This can cause such crashes. Either: re-compile the whole lot always or try to find out how to properly set-up dependencies. I'm not sure sure about the support for dependencies in DevCpp, can anyone, please, comment? wkr, Gerke Nicholas O. Rawlings wrote: >Hey there! > >I'm writing a string class as part of a school project. Sometimes when I >compile the class in a test program and run it, I get an error message >saying "NSTRING.EXE has generated errors and will be closed by Windows. You >will need to restart the program. An error log is being created." If I >re-compile with the exact same source code, the problem goes away and the >test program runs perfectly. I'm using version 4.9.8.5 on Windows 2000. I >have about 1300 lines of well-spaced code, but it seems unlikely to me that >this could be too much for mingw or for my computer to handle. Any ideas? > >Nicholas > > > >------------------------------------------------------- >The SF.Net email is sponsored by EclipseCon 2004 >Premiere Conference on Open Tools Development and Integration >See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. >http://www.eclipsecon.org/osdn >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > |
|
From: Watson D. <wa...@wa...> - 2004-01-31 02:28:07
|
Wednesday, January 28, 2004, 12:18:10 PM, you wrote: NOR> Hey there! NOR> I'm writing a string class as part of a school project. Sometimes when I NOR> compile the class in a test program and run it, I get an error message NOR> saying "NSTRING.EXE has generated errors and will be closed by Windows. You NOR> will need to restart the program. An error log is being created." If I NOR> re-compile with the exact same source code, the problem goes away and the NOR> test program runs perfectly. I'm using version 4.9.8.5 on Windows 2000. I NOR> have about 1300 lines of well-spaced code, but it seems unlikely to me that NOR> this could be too much for mingw or for my computer to handle. Any ideas? 1300 lines? Uh, no. That's not the problem. If the error is sporadic like that, it's usually a pointer error or some sort of memory overwrite. Missing copy constructors will do that. Modify your program to log error messages to a log file and try to pinpoint where the error is happening. Segment fault errors are sometimes hard to recreate and you'll need to be patient and run lots of test cases. HTH. Watson (the pencil neck) Davis |