sal55 / langs

86 stars 6 forks source link

bcc.exe hangs sometimes and pressing CTRL or SHIFT helps #8

Open ThomasMertes opened 3 years ago

ThomasMertes commented 3 years ago

A hang of bcc.exe can be triggered by including some file that does not exist. Eg.: -------------------- begin ctest30x.c --------------------

include

int main(int argc,char *argv[]){return 0;} -------------------- end ctest30x.c -------------------- If I compile ctest30x.c with bcc it writes: Compiling ctest30.c to ctest30.exe aclapi.h 8 Lex error Can't find include file in:ctest30.c Line: 2

and then hangs. Pressing CTRL or SHIFT helps. Probably there are other situations (besides a missing include file) that trigger these hangs. When I compile Seed7 with

make7 -f mk_bcc.mak depend

it is necessary to press CTRL or SHIFT very often. After pressing these keys very often make depend finishes (at the end it complains about a missing definition of REG_SZ, which is defined in winnt.h/windows.h with #define REG_SZ 1 ).

I verified with ProcessExplorer that the hangs are in bcc.exe (and not in make7). Normally an error in a C program triggers a segmentation violation. Therefore I guess that this hangs are on purpose. The previous version of bcc.exe triggered popups in Wine that told me that a program crashed.