Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange error notification behavior



We're working on a print driver that processes an image and writes the print job to a "hot folder". The print job is a specially formatted file. Ideally, the hot folder is located on a remote server that the physical printer is connected to; but the folder could be a local folder that holds the print jobs for later transfer to the remote server's hot folder. The remote server (a Windows machine) is then responsible for the print job. We have been successful in getting our driver to write out the print job, but we have had a problem in reporting errors to the operator.

If we have a problem while writing out our print job, we create a notification dictionary (type kPMEventErrorOccurred) and pass it on to our notificationProc. We then return our error back up through our stack to PrintPage().

The PrintCenter print queue shows the print job processing and then displays the error dialog. The error dialog then immediately disappears (about 1/2 second) and this keeps repeating; process job, display error, error is dismissed.

It seems that our error is being acknowledged by someone, but who? How do we find out and how do we fix it?

Some other information:
- The error text that is displayed is correct for the error condition that occurred.
- The error and error text does show up in the CUPS error log.
- The problem occurs whether the hot folder is on the remote server or is local.
- The problem occurs whether or not we put in a Sleep() immediately after posting the notification dictionary to the notificationProc.
- We've seen this on both 10.2.3 and 10.2.6. Other OS versions have not been tested.

Any ideas or insights are greatly appreciated.
Thanks,
Garry
--
------------------
Garry Fink
CI-WW-OSD, PROF PROD-DPSC
Eastman Kodak
email@hidden
(585)726-6443
_______________________________________________
printing mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/printing
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.