Getting Null reference error when using Rasterizer

Nov 11, 2013 at 1:11 PM
Edited Nov 11, 2013 at 1:14 PM
Hello, I've installed the gs910w64.exe in the c:\Program folder and added reference of Ghostscript.NET in my c# app. But I am getting "Object reference not set to an instance of an object." error when opening the Rasterizer. Below is my code:
          var _lastInstalledVersion = GhostscriptVersionInfo.GetLastInstalledVersion(
                    GhostscriptLicense.GPL | GhostscriptLicense.AFPL,
            var _rasterizer = new GhostscriptRasterizer();
            _rasterizer.Open(SourceFilePath, _lastInstalledVersion, true);
Please can someone help?
Nov 11, 2013 at 10:08 PM
I guess that _lastInstalledVersion is null and that is because doesn't find the installed Ghostscript application.
Make sure that you run your application in 64 bit mode (since you installed the 64 bit version of ghostscript).
You can check if that's the case by checking the Envionment.Is64BitProcess property.