Mailing Lists: Apple Mailing Lists

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

Getting error -9672 from Apple's sample USB code under Panther



Hi all,
Four years ago I took the sample printing code from Apple and turned it
into an Appletalk, PCL5 raster-based driver in under 2 weeks. Soon after
that, the project got shelved. The project has come back in the last week so
I took the sample code and tried building it under Panther and Xcode 1.1.

It built fine, but didn't run well. It took about 3 days of trial and
error to get it working. The details of how I got it to the state it's in
now isn't relevant, but now I finally got it to recognize my printer and
ONLY my printer (like it should), and shows the printer in both the SDK USB
list and the vanilla USB list. Fine. This is a raster-based printer (I think
it's based on JBIG) so I can't use PCL or Postscript. However, I haven't
gotten to the point of actually running the converter code yet because I
can't add my printer.

As I said, the printer shows up in the list. When I click "Add", I get a
-9672 error (BadXML). The problem is the XML is reported in Console and
seems to be empty. Ok, but where does that come from? The last thing I do
before I get this error is return from CreatePrinterBrowserModuleInfo with
noErr. I verified that the CFArrayRef and the dictionaries created inside
that function are valid. The ticket XML I assume is created in
CreatePrinterTickets() but I never get there, nor do I hit Initialize(). I
have NO IDEA where this empty XML is referenced and it's driving me nuts
since there's very little documentation from Apple on the web site. I have
contacted ADC for something more up to date. Has anyone come across this
problem?

Mike
email@hidden
_______________________________________________
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.