jay@ICSI.Berkeley.EDU (Jay Weber) (01/25/91)
I'm stuck. I'm trying to write a program that sends output to my postscript printer, but some bug (I'm beginning to think it's not in my code) causes the program to bomb with *either* "Unrecoverable Error" or "System Error/Cannot read Device AUX". The latter is especially weird, since I don't try to do anything with AUX, and especially annoying since both the "Cancel" and "Retry" buttons do the same thing: redraw the same box. I must then reboot. So I get the printer params ("PostScript Printer,PSCRIPT.DRV,LPT1:"), and call CreateDC. It hands me back a non-NULL display context, and seems fine. But when I call Escape(hPr, STARTDOC, 3, "hi", NULL), it never returns: the print spooler icon appears, my hard drive chugs, and then I (randomly) get one of the two errors above. Funny thing is, it used to work fine. I made some seemingly unrelated changes to the program and all the sudden things went wonky. I'm not out of disk space, and I'm running only small, standard applications on 2 Meg of memory in Protected mode. Any ideas? I'm desperate. Jay Weber jay@icsi.berkeley.edu