How does this code cause a -100 error in ghostscript
<p><br>
I'm using the GhostScript.NET.Processor dll to send a pdf to print from a web service. The code I'm trying to execute is:<br ><br></p>

<pre><code>ThreadPool.QueueUserWorkItem(Sub()

       Dim inputFile As String = "C:\WebServiceLog\checklist.pdf"
       Dim printerName As String = "MIAUMIAUMIAU"
       Using processor As New GhostscriptProcessor()
            Dim switches As New List(Of String)()
            switches.Add("-empty")
            switches.Add("-dPrinted")
            switches.Add("-dBATCH")
            switches.Add("-dNOPAUSE")
            switches.Add("-dNOSAFER")
            switches.Add("-dDuplex")
            switches.Add("-dTumble=0")
            switches.Add("-dNumCopies=1")
            switches.Add("-sDEVICE=mswinpr2")
            switches.Add(Convert.ToString("-sOutputFile=%printer%") &amp; printerName)
            switches.Add("-f")
            switches.Add(inputFile)
            processor.StartProcessing(switches.ToArray(), Nothing)
         End Using
 End Sub)
</code></pre>

<p><br><br>
The error that I keep getting is <br><b><i>An error occured when call to 'gsapi_new_instance' is made: -100</b></i><br/><br> I am running 64bit. Any help on this issue would be greatly appreciated.</p>