[comp.lang.c++] BCX & CTRL-Break or 'how to reboot'

buts@ebs.eb.ele.tue.nl (Frank Budzelaar) (05/10/91)

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 <iostream.h>

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.
------------------------------------------------------------------------

blake@nthropy.uucp (Blake Freeburg) (05/11/91)

 About the crash...

 Ever considered that it could be from using a beta of DOS 5.0.  Most of the
other things that worked came also from Msoft, and I'm sure they will test    
their own programs and code before others have a chance to.

The opinions expressed here are definately my own
Blake Freeburg.