Quantcast
Channel: Ghostscript.NET
Viewing all articles
Browse latest Browse all 393

Created Unassigned: GhostScript process dies after opening a PDf file [2317]

$
0
0
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);
try
{
using (Image img = _rasterizer.GetPage(96, 96, 1))
{
}
_rasterizer.Close();
}
catch (Exception ex)
{

}
```

Viewing all articles
Browse latest Browse all 393

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>