engber@speedy.cs.wisc.edu (Mike Engber) (08/18/88)
In a previous posting I discussed a bug that only appeared when not using the LSC debugger. Here's the problem: I was doing generic C programming using stdio so I wasn't doing any of the Mac initializations myself. However, I was also using the QuickDraw routine, Random(). Whenever I used Random() before calling printf the system would crash. I deduce that the problem is that QuickDraw wasn't initialized until I called printf and that the debugger initializes it automatically so that's why it never happened while using it. I am unable to verify this because I can't find the initialization calls in the library source to printf (and I don't know what the debugger does). If anyone knows any more I'd appreciate comments. Hope this saves someone else the hassle it caused me. -ME