Hi - we are running a service on a Windows 2012 R2 platform written in C#. It uses Aspose.Total.
We create 40 background processes to manage our tasks (for example, rasterizing PDFs to images). We set the licence for Aspose.Pdf once per background task using the following code:
var l = new Aspose.Pdf.License();
where NSLegalConstants.AsposeTotalLicenseString contains a string copy of our licence.
This works well nearly all the time. However, sometimes it fails and we end up with “Evaluation Copy” printed on our rasterized images. It seems to fail if the calls to SetLicense happen fast (i.e. 20 within a second).
Any thoughts on this? Should we be setting the licence for each background thread (we are using BackgroundWorker to create the threads)? Is there a better and more reliable way to set the license?