This project is read-only.

GhostScript process dies after opening a PDf file


I am having an error when i try to close/dispose the "GhostscriptRasterizer" after opening a PDF and creating a image. I get this error

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

And when ever this error happens i cannot try catch the exception. It just dies and my application stops.

I am using the GS9.18 and Ghostscript.NET 1.2.0

Is there any solution here for at least try catch the error?

Here is the code i am trying
_rasterizer = new GhostscriptRasterizer();
            _rasterizer.Open(@"\\dha11server04\spfiles\Arijit\ghost script error\178309_em_cs_sb_fy16q4_dbm_master_dtp4_e_flex.pdf", _lastInstalledVersion, true);
                using (Image img = _rasterizer.GetPage(96, 96, 1))
            catch (Exception ex)