Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!uakari.primate.wisc.edu!samsung!munnari.oz.au!mullian.ee.mu.OZ.AU!iand From: iand@mullian.ee.mu.OZ.AU (Ian Robert DOBSON) Newsgroups: comp.sys.mac.programmer Subject: THINK C 4.0 bug? Message-ID: <5364@munnari.oz.au> Date: 5 Sep 90 11:49:24 GMT Sender: news@cs.mu.oz.au Reply-To: iand@mullian.ee.mu.OZ.AU (Ian Robert DOBSON) Organization: Dept. of Electrical Engineering, University of Melbourne Lines: 25 I just went out and bought THINK C 4.0 and have come across an interesting bug. Using the "ANSI" and "MacTraps" libraries with default project settings (384K, no 68020/68881 etc.) bombed the machine when executing the following code: #include main() { char array[32000]; printf("\nHello, world!\n"); } The array allocation bombs the machine, the printf never executes, and after a click or two the menus jam up and the machine needs a reboot. Can anybody suggest any reason for this problem, and any remedy without dynamically allocating the array with 'malloc', 'NewPtr' etc. Ian R. Dobson Dept. of Electrical Engineering University of Melbourne, Australia (internet: iand@mullian.ee.mu.oz.AU)