Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!hp4nl!svin02!eba!ebs!buts From: buts@ebs.eb.ele.tue.nl (Frank Budzelaar) Newsgroups: comp.lang.c++ Subject: BCX & CTRL-Break or 'how to reboot' Message-ID: <1145@eba.eb.ele.tue.nl> Date: 10 May 91 13:58:55 GMT Sender: news@eb.ele.tue.nl (The News system) Organization: Eindhoven University of Technology, The Netherlands Lines: 52 Hi, I've just purchased BC (Borland C++ 2.0), and was quite happy with the protected mode version of the compiler BCX, until I tried to interrupt a program waiting for input. This simply crashes the system, and thus makes the whole thing worthless. BC does not exhibit this behaviour. The other protected mode programs such as tasmx, tdw etc run without trouble. if you want to try it for yourself: #include void main(void) { char s[40]; cin >> s; } and break it... The system I'm working on is a nameless 386, which runs Windows3, MSdos 5.00.409.c (time to upgrade to a real release of dos 5....) with EMM386, himem etc without any trouble (my experience is that nameless machine are usually more compatible than brand systems!). I tried to remove every thing from config.sys and autoexec.bat, but this does not help. Is there anybody who has experienced the same problem ? If not, please let me know (it could be my configuration). If so (much more important), is there a solution ? I also already encountered some other bugs. When you select register optimizing, it sometimes generates garbage code. This happened in a 160k+ lines program, and I have not been able to reproduce it in a small example file. If I can, I will post it. A harmless bug in the installation program is that it complains when it cannot find the file you want to modify, but then displays the name BC.EXE rather than the file you want to modify. If you have encountered other bugs, please post them. I have waisted several hours on hunting non-existing bugs in my code, caused by bugs in compilers.... ------------------------------------------------------------------------ Frank Budzelaar "Why stop now when I'm Eindhoven University of Technology just hating it?" email: buts@eb.ele.tue.nl Marvin. ------------------------------------------------------------------------