I am trying to process some files in parallel. When I debug I can see the first file is queued up , but when the second is called I get an error “A pipe server with the name PDFCreator-2 already exists!”. I check PdfCreator.IsInstanceRunning before calling Initialize() but IsInstanceRunning is always false so it tries to initialize and fails. Not sure if its a timing issue or not, Any Ideas?
if (!PdfCreator.IsInstanceRunning)
_Queue.Initialize();
Hey,
not quiet sure, if I get your intention right, but: If you want to convert files in parallel, have you considered using the ConvertToAsync(…) method? This method allows you to convert a file asynchronously, meaning that you can directly insert others into the queue and so on (more details can be found in the manual)
In case of that this won’t help, please put the relevant parts of your code here, otherwise its pretty hard to give an accurate diagnosis.
Regards,
Sazan