Why is my Print Spooler Service dying and my print process hanging?
I have a C# process that prints an in memory pdf file using O2S.Components.PDFRender4NET, to different printers through out our company. At seemingly random intervals (like once every other day), the print spooler service on the windows machine dies. Also, the print process will hang indefinitely (at 0 cpu) at random intervals.
Any ideas as to how to determine what is causing the print spooler to die, or for my process to hang? (I'm using the O2S code because I need to be able to rotate the paper and change the page scaling to none, which I can't figure out how to do in C# if I just send the pdf raw to the printer. Is there som开发者_C百科ething else I should be using?)
I was unable to find the source of these errors... but I think it wasn't an issue with the print driver itself, but with the calling code spawning up too many threads.
精彩评论