Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!ut-sally!husc6!cmcl2!rutgers!ucla-cs!zen!ucbvax!hplabs!pyramid!voder!apple!dowdy
From: dowdy@apple.UUCP (Tom Dowdy)
Newsgroups: comp.sys.mac
Subject: Re: Printing Question (background Idle procedures)
Message-ID: <1288@apple.UUCP>
Date: Tue, 7-Jul-87 19:04:28 EDT
Article-I.D.: apple.1288
Posted: Tue Jul  7 19:04:28 1987
Date-Received: Fri, 10-Jul-87 07:19:52 EDT
References: 
Reply-To: dowdy@apple.UUCP (Tom Dowdy)
Organization: Apple Computer Inc., Cupertino, USA
Lines: 26

In article  rs4u+@ANDREW.CMU.EDU (Richard Siegel) writes:
>
>I've got an application under development, and I thought that for
>printing I'd implement a background procedure so that I could
>use a dialog box with a "Cancel" button and a status bar
>showing the percentage of the page printed. Following the
>suggestion in Inside Macintosh (volume2, page 154), I set the
>"pIdleProc" field of my print handle to "DoDialog" (which is my
>idle procedure).
>

From volume2, page154:

"Note: If you designate a background procedure, you must set pIdleProc
AFTER presenting the dialogs, validating the print record, and initializing
the printing grafPort:  The routines that performs these operations
reset pIdleProc to NIL."

I got stung with this once myself, perhaps it is the problem in this case
as well.  Pretty simple fix if it is.

  Tom Dowdy                 CSNET:    dowdy@apple.CSNET
  Apple Computer MS:27Y     AppleLink:DOWDY1
  20525 Mariani Ave         UUCP:     {sun,voder,amdahl,decwrl}!apple!dowdy
  Cupertino, CA 95014       
  "Plus ca change, Plus c'est la meme chose."