Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There are several causes to this also <a href="https://stackoverflow.com/users/189950/kirk-woll">Kirk Woll</a> has added some good points.</p> <p>1.There might be an infinite loop which causes the service to hang Ex. exception handling method calls the same method for exception handeling. Check EventLogs in EventViewer to get these kind of error if any.</p> <p>2.Memory leak, may be your application is not releasing the memory after use. Close any unwanted connection, dispose unused object after your work is done. Try any memory leak tool</p> <p><strong>Suggestion:</strong> If the above two situation fails then you can automate recycling the application pool for the service. <img src="https://i.stack.imgur.com/1Hmqv.png" alt="Change Application Pool recycle settings for automatic recycle after some request"></p> <p><strong>EDIT:</strong></p> <p>try the following.</p> <pre><code> obj.ConvertFile(inputFilename, outputFullPath, null, batchProcess, null); //not sure if your object has similar methods or not but you can give it a try. obj.Close(); obj.Dispose(); </code></pre> <p>or use the using style.</p> <pre><code>using(Print2Flash3.Server2 obj = new Print2Flash3.Server2()) { Print2Flash3.BatchProcessingOptions batchProcess = new BatchProcessingOptions(); batchProcess.BeforePrintingTimeout = 60000; batchProcess.AfterPrintingTimeout = 10000; batchProcess.PrintingTimeout = 120000; batchProcess.ActivityTimeout = 30000; batchProcess.KillProcessIfTimeout = ThreeStateFlag.TSF_YES; batchProcess.ApplyChanges(); obj.ConvertFile(inputFilename, outputFullPath, null, batchProcess, null); } </code></pre> <p><strong>EDIT2:</strong></p> <pre><code> obj.ConvertFile(inputFilename, outputFullPath, null, batchProcess, null); obj = null; //As the object is not disposable, you need to release the memory //manually. </code></pre> <p>If <em>Print2Flash3.Server2</em> is a custom class then derive it from IDisposable interface and implement the <a href="https://stackoverflow.com/questions/538060/proper-use-of-the-idisposable-interface">Dispose method</a>.</p> <pre><code>public class Server2 : IDisposable { .... .... public void Dispose() { this = null; } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload