Subject: Error starting print job: Can't start document.

From: Art Lysionok <[email-masked]>
Date: Thu, 15 May 1997 09:26:03 -0400

Me 2
	Several installations here of 3.96 have experience the error message:
Error starting print job:  Can't start document

In some instances it will print the doc on the first attempt but if I
attempt a second print of the same message the error message appears. 
If I then change to another msg it will print on the first try but fail
on the second.
	This occurs on direct connected and networked printers as well.

-- 
       / / /              Art Lysionok                  / / / /
      < < <  Biochemistry Dept.  University of Ottawa  < < < < 
       \ \ \   613-562-5800 X8210   FAX 613-562-5440    \ \ \ \

---

From: Mike Brudenell <[email-masked]>
Date: Thu, 15 May 1997 14:50:50 +0100 (BST)

Hi -

I reported this problem to the Pine Team a little while back.  Included
below is their reply.  If you don't fancy waiting for 4.00 or
modifying/recompiling 3.96 you might like to know that we have found no
problems so far with 3.95.

Cheers,

-- 
Mike Brudenell                                         <[email-masked]>
------------------------------------------------------------------------
The Computing Service, University of York, Heslington, York, YO1 5DD, UK
Tel: +44-1904-433811  FAX: +44-1904-433740  http://www.york.ac.uk/~pmb1/

* Unsolicited commercial e-mail is NOT welcome at this e-mail address. *

> 	This occurs on direct connected and networked printers as well.

Reply from the Pine Team to my earlier Bug Report...

Date: Thu, 1 May 1997 16:53:19 -0700 (PDT)
From: Michael Seibel <[email-masked]>
To: Mike Brudenell <[email-masked]>
Subject: Re: Bug (ID KR15U): Problems printing from PC-Pine 3.96 to
networked printers (fwd)

Mike, Apologies for the late response!  Turns out the problem has to do
with initialization of the structure passed to the StartDOC library call. 

It appears the Win32 implementation is pretty sensitive to uninitialized
fields (in spite of the fact the documentation indicates that, for our
use, only some fields, which we initialize, are referenced).  The Win16
implementation wasn't as sensitive so we never had such failure. 

We'll certainly have it fixed in the Pine 4.00 release.  In the mean time,
if you can re-build from 3.96 sources, the fix is to edit the file
pine3.96/pico/mswin.c adding the statement: 

        memset(&di, 0, sizeof(DOCINFO));

just before the structure's cbSize and lpszDocName fields are initialized. 
It should be right around line 6110.

Sorry for the problems, and thanks for the report! 

-mikes