Path: utzoo!attcan!uunet!lll-winken!arisia!tow From: tow@arisia.Xerox.COM (Rob Tow) Newsgroups: comp.sys.ibm.pc Subject: Problem with CodeView in MSC 5.1 Keywords: MSC C CodeView debug printf Message-ID: <553@arisia.Xerox.COM> Date: 11 Jan 89 20:13:39 GMT Organization: Xerox PARC Lines: 76 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 main() { fprintf(stderr, "main()\n"); printf("now invoke'sub()'...\n"); sub(); printf("main again!\n"); } /* Test2.c */ #include 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-4087