• 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
SIGPIPE while printing after ~10 minutes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SIGPIPE while printing after ~10 minutes


  • Subject: SIGPIPE while printing after ~10 minutes
  • From: Cristian Savu <email@hidden>
  • Date: Tue, 25 Feb 2003 10:20:05 +0200

Hello list,
Maybe someone could take a look at the code below and tell me what I
am doing wrong...

I managed to isolate the code that generates a SIGPIPE error and the
corresponding crash. The views (accessoryView and printedView) are
empty and
the crash is happening also when the views are loaded from a nib.

It is weird and I really could use some help on this.

Below is the code that generates the crash and should be used like
this :
1. Call it once
2. wait 10 minutes !!!! If you don't wait, it will work nice.
3. call it again --> SIGPIPE

What I understood until now :
- is related with the accessory panel
- maybe, somewhere there is a timer that closes something , i have no
idea what.

Regards, Cristian

- (void) startPrinting
{
NSView* accessoryView = [[NSView alloc]
initWithFrame:NSMakeRect(10,10,100,100)];
NSView* printedView = [[NSView alloc]
initWithFrame:NSMakeRect(10,10,100,100)];
//get printer information
NSPrintInfo *prntInfo = [NSPrintInfo sharedPrintInfo];
//get printer panel
NSPrintPanel *printPanel = [NSPrintPanel printPanel];
//start print operation
NSPrintOperation *printOp;

[printPanel setAccessoryView:accessoryView];
printOp = [NSPrintOperation printOperationWithView: printedView
printInfo:prntInfo];;

[printOp setPrintPanel:printPanel];
[printOp setShowPanels:YES];

NSLog(@"Run operation");
[printOp runOperation];
[accessoryView release];
[printedView release];
}

PS. Please excuse the crosspost but as I sad, I really need some help.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Cocoa and Java and Menus Oh my...
  • Next by Date: [NSApp mainWindow]
  • Previous by thread: (Solved, sort of) Converting mouse coordinates in fullscreen context?
  • Next by thread: NSMovie playback cutout
  • Index(es):
    • Date
    • Thread