| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi Paul,
I read about the 5 seconds window for error message. Here is what I am doing and I don't know if it is correct.
1. Unrecoverable error in BeginJob:
In BeginJob, if I fail to connect to the printer (which is possible for the printer I am working with), I want to display an error message in Print Center.
So I send my notification the Tioga way. Then I wait 5 seconds by doing sleep(5). But this doesn't work. I get an infinite loop going on. What I see in the cups log is the error showing up as Fatal, then I see a cancel coming from someone and I see the job restarting and this goes on infinitely until I manually stop the queue.
Is there a mechanism in CUPS that will send a cancel to my PM when an unrecoverable error occur and if it hasn't quit yet?
If I don't sleep after sending my notification, I never get the dialog to show up in print center!
Is it safe to just wait 1 second then exit?
2. When I am printing, if an Unrecoverable happen, I use the Tioga notification mechanism, then I exit as soon as possible with a kPMGeneralError. Is this correct?
_______________________________________________
Thanks,
pat
_______________________________________________
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.
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.