Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!dog.ee.lbl.gov!pasteur!jay From: jay@ICSI.Berkeley.EDU (Jay Weber) Newsgroups: comp.windows.ms.programmer Subject: problems with STARTDOC Message-ID: <10443@pasteur.Berkeley.EDU> Date: 25 Jan 91 05:36:39 GMT Sender: news@pasteur.Berkeley.EDU Organization: International Computer Science Institute, Berkeley, CA Lines: 20 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