tow@arisia.Xerox.COM (Rob Tow) (01/12/89)
I have recently acquired Microsoft C version 5.1 and am running it on an IBM AT
with MSDOS version 3.1 - and have encountered an apparent problem with
CodeView. I would very much appreciate any hints or solutions to the
following situation.
The problem seems to be that CodeView - indeed, the entire system - will
hang when it encounters a "printf()" statement. The screen changes from the
CodeView screen to a shell screen, and the output from the "printf()"
appears; and then the system freezes. None of the interrupt or screen
refresh/mode commands work, nor does the quit command.
The display is a NEC Multisynch color monitor, and it is driven by an
Everex Micro-Enhancer Deluxe Graphics Adapter EV-657.
The program is quite simple - two C files. The two files, and their
associated Make file follow:
/* Test1.c
*/
#include <stdio.h>
main()
{
fprintf(stderr, "main()\n");
printf("now invoke'sub()'...\n");
sub();
printf("main again!\n");
}
/* Test2.c
*/
#include <stdio.h>
sub()
{
int a = 42;
int b = 666;
printf("sub()\n");
a += b;
}
# Test.mak
compile=cl /c /Zi /Fs
test1.obj: test1.c
$(compile) test1.c
test2.obj: test2.c
$(compile) /c test2.c
test.exe: test1.obj test2.obj
link /CO test1.obj+test2.obj,test,test;
---
Rob Tow
Member Research Staff
Electronic Document Lab
Xerox PARC
3333 Coyote Hill Drive
Palo Alto, CA 94304
(415)-494-4087pyt@hprnd.HP.COM (Pierre-Yves Thoulon) (01/13/89)
Try hitting F4 (or F3, I don't remember) to switch back to the codeview screen. Pyt.