• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Application hangs when trying to print
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Application hangs when trying to print


  • Subject: Application hangs when trying to print
  • From: Scott Thompson <email@hidden>
  • Date: Thu, 22 Sep 2005 01:26:05 -0500

I wanted to turn on very basic printing in my application so I read a bunch of documentation. From what I can tell, to implement the very simplest form of printing in an NSDocument based application is to override the method:

- (NSPrintOperation *)printOperationWithSettings:(NSDictionary *) printSettings error:(NSError **)outError

Naturally I tried this and it doesn't work. My override for this method is being called and it seems to be doing something "normal".

After returning from my routine, however, the application hangs. The backtrace, invariably, looks something like this:

#0 0xffff85d8 in ___spin_lock_relinquish () at /System/Library/ Frameworks/System.framework/PrivateHeaders/ppc/cpu_capabilities.h:186
#1 0x90032ac0 in _malloc_fork_prepare ()
#2 0x9003280c in fork ()
#3 0x92870d14 in -[NSConcreteTask launchWithDictionary:] ()
#4 0x1c017d34 in SimplePrintCopies::SetNumCopies ()
#5 0x1c017b44 in SimplePrintCopies::SetNumCopies ()
#6 0x1c00fc60 in preparePageFormatTicketForEpsonPDE ()
#7 0x1c00ffc4 in preparePageFormatTicketForEpsonPDE ()
#8 0x1c00ee18 in PMPrivatePrepareAppKitPrintDialog ()
#9 0x92fac088 in PJCPrepareAppKitPrintDialog ()
#10 0x92fabfa0 in PMPrepareAppKitPrintDialog ()
#11 0x93829f40 in -[NSPrintPanel beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextIn fo:] ()
#12 0x93966a28 in -[NSDocument _printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:cont extInfo:] ()
#13 0x938aaed0 in -[NSDocument printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:conte xtInfo:] ()
#14 0x936d2d2c in -[NSApplication sendAction:to:from:] ()
#15 0x9372d528 in -[NSMenu performActionForItemAtIndex:] ()
#16 0x9372d2ac in -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] ()
#17 0x93634828 in _NSHandleCarbonMenuEvent ()
#18 0x9363218c in _DPSNextEvent ()
#19 0x93631b08 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#20 0x9362e06c in -[NSApplication run] ()
#21 0x9371e8bc in NSApplicationMain ()
#22 0x00002dd8 in main (argc=1, argv=0xbffff734) at /Users/scott/ Projects/MM Cross-Platform/Source Code/Application/Mac/main.mm:27


From what I see here, the computer is trying to bring up the print dialog From there it gets a hold of the dialog extension for the Epson printer. From there it devolves to a point where it's trying to acquire a lock and failing.

My question is, can anybody suggest why this call is blocking the application? None of the other applications on my system seem to have this same problem.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Japanese Language Support
  • Next by Date: Re: Cocoa Controls
  • Previous by thread: Re: Japanese Language Support
  • Next by thread: Not attaching Mail.App plug-in
  • Index(es):
    • Date
    • Thread