Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > TCP/IP printer port causes failed jobs to restart automati..

TCP/IP printer port causes failed jobs to restart automati..

Forum Windows XP : Windows XP General Discussion - TCP/IP printer port causes failed jobs to restart automati..

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: comp.os.ms-windows.nt.admin.networking,microsoft.public.win2000.general,microsoft.public.windowsnt.print,microsoft.public.windowsxp.print_fax (More info?)

 

I have a situation under XP/2000 where setting up a printer queue to
use a TCP/IP port means that any print jobs that fail are
automatically retried, and in some cases cause an infinite loop.

The jobs are failing because I'm doing some extra processing in a
custom print processor, which sets the job status to "Error" and
Restarts then Pauses* the job if it finds a problem. This works fine
with every other type of port, where the errored job is left on the
queue in "paused-restarting" mode, and allows other jobs to continue,
but not with TCP/IP printer ports, where the job simply retries to
print again, ad infinitum.

Any clues?

Dylan


* Code is:

JOB_INFO_1* pi;
...
pi->Status = JOB_STATUS_ERROR;
SetJob(printer, jobId, 1, (BYTE*)pi, 0);
SetJob(printer, jobId, 0, 0, JOB_CONTROL_PAUSE);
SetJob(printer, jobId, 0, 0, JOB_CONTROL_RESTART);

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > TCP/IP printer port causes failed jobs to restart automati..
Go to:

There are 1024 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them