| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Thanks Paul,
Yes this is Jaguar. I don't think I have printf's in the PBM, except for
some fprintf's that go to a log file.
I've since seen your 2 messages to this list from February that talk
specifically about the -1 error. Sorry for not searching the archives
first (or just searching my saved mail, duh).
Anyway, I found that my PM was failing with a -1 error for any I/O. Its
CreatePrinterTickets function was crashing PrintJobMgr. (I knew I needed
to debug that code). So it looks like another cause of the -1 error is a
PrintJobMgr crash.
Correcting my PM code avoids the -1 error when using say the USB PBM, but
my PBM still gets it. My PM's CreatePrinterTickets function isn't getting
called, neither is its Initialize function, and Console doesn't report
that PrintJobMgr has crashed.
Is there a way to tell what PrintJobMgr is doing? Can I invoke it
manually under the similar conditions? Is this what the "PrintJobMgr
queue-name" usage is for? I tried renaming the executables in its bundle
so PrintJobMgr_debug got used instead during a run of Print Center,
hoping to see a clue sent to Console. No dice.
Or perhaps its hasn't even gotten to PrintJobMgr yet and its not to
blame? Ah, top says differently. In my own logs, the only thing that I
can see happening at that time is a call to my PM's
CreatePrinterBrowserModuleInfo function. I'm confused, shouldn't this
have instead been called while initializing the PBM to gather the lookup
specs of the supported PMs? %:-p
Thanks for your help.
-Pierre
P.S your message was dated Jan 3, 1970. Hey, why do we get 1970 now
instead of 1904? I like 1904 better, maybe I'll file a bug :-)
_______________________________________________
On Sat, 3 Jan 1970 03:51:59 -0800, Paul Danbold <email@hidden> said:
Pierre,
-1 usually means something other than the PrinterInfo ticket, the
JobTemplate and the PDE paths are being written to stdout during queue
creation. Have you checked there are no printf statements in your PBM?
BTW I assume you are seeing this on Jaguar.
-Paul
On Tuesday, June 17, 2003, at 12:32 PM, Pierre Houston wrote:
Hi Bob,
On Tue, 17 Jun 2003 10:10:59 -0400, email@hidden
<email@hidden> said:
Pierre,
I saw this problem when I first began working on my PBM. While I don't
remember for sure what caused this, I think it was because a had
written a PBM but not an IOM (since I planned on getting the PBM part
working before doing the IOM). The IOM's GetConnectionInfo routine
must
return the path of the PBM relative the the IOM path.
Hope this helps.
Bob Maggi
Thanks Bob, but actually no, it doesn't :-) Yes I've already found out
about the relative path to the PBM. And I found it somewhat confusing,
but perhaps that's just me. I think this is how it goes:
- If IOM and PBM are siblings in the same parent directory, the browser
path should be "../PBM.plugin"
- If the PBM is to be within the IOM's bundle (which seems appropriate
to
me), say within a plugins directory, the browser path should be
"Contents/PlugIns/PBM.plugin"
- If the IOM is within in the PBM's bundle (which i originally thought
made sense then changed my mind), say within contents/plugins or
something, I believe the browser path should be just "../../.."!
I believe these situations are all allowed, someone please correct me
if
I'm wrong.
I wasn't clear, but the error -1 I get is upon clicking the Add
pushbutton in the browser sheet while my PBM is showing, not Print
Center's Add button in toolbar. This is what I'm referring to when I
ask
"What exactly happens after the Add button is pressed?"
So can anyone give me a rundown of the calls made to PBM, IOM & PM
after
the browser sheet's Add button is pressed? Or anything in the print
system itself that would cause Print Center to report error -1?
Thanks,
Pierre
Hi printing list,
I'm once again working on a PBM. The LPR & USB samples from DTS are
very
useful, thanks Apple.
Anyway, Print Center generates an error alert, error code -1, after I
press the Add button with my PBM (in fact, after a long delay after
pressing the Add button). I don't doubt the -1 comes from my code,
but
I'm having trouble finding it. I probably not looking at all the
entry
point functions called by Print Center, in either PBM, IOM or PM.
What
exactly happens after the Add button is pressed?
Or could possibly the -1 be coming from Print Center itself?? If so
what
might that mean?
Thanks a bunch.
--
Pierre Houston <mailto:email@hidden>
Senior Software Engineer Direct Ph: (604) 296-3635
Strydent Software, Inc. <http://www.strydent.com>
Suite 488 - 2608 Granville St. Office Ph: (604) 296-3600
Vancouver, BC, Canada V6H 3V3 Fax: (604) 296-3699
| References: | |
| >Re: Trouble finding source of PBM error problem (From: "Pierre Houston" <email@hidden>) |
| 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.