Support Center

Exception initialising new DTI.ImageMan.Codecs.PdfDecoder

Steve Fowler Oct 06, 2015 11:05AM EDT

We are using the `PdfDecoder` from within `ImageMan` to handle our PDF file's, however we are getting exceptions (sometimes) being thrown when generating a new instance of the `PdfDecoder` class.


Code:
try {
DTI.ImageMan.Codecs.PdfDecoder decoder = new DTI.ImageMan.Codecs.PdfDecoder();
} catch (Exception ex) {
' Error thrown here!!
}


Exception Thrown:
The type initializer for 'DTI.ImageMan.Codecs.PDFDecoderInit' threw an exception.
at DTI.ImageMan.Codecs.PDFDecoderInit.Init()
at DTI.ImageMan.Codecs.PdfDecoder..ctor()

Inner Exception:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at FPDF_InitLibrary(Void* )
at DTI.ImageMan.Codecs.PDFDecoderInit..cctor()


The code above will run fine one minute and then fail the next. It also seems to fail on some client machines more often than others, but with no obvious pattern.

We are currently using latest available version of ImageMan.Net:
ImageMan.Net Std Edition v3.25
ImageMan PDF Export Addon v8.80
ImageMan.Net PDF Import Addon

Can you help?

3 Data Techniques Responses and 2 Community Responses

Up 0 Rated Down
DTI Support  Data Techniques Employee Oct 06, 2015 12:31PM EDT

Hello,

What is the exception you are getting ?

Thanks,
John

Up 0 Rated Down
Steve Fowler  Data Techniques Employee Oct 16, 2015 10:40AM EDT

The error we are getting is "Error initialising PDF decoder"

The type initializer for 'DTI.ImageMan.Codecs.PDFDecoderInit' threw an exception.
at DTI.ImageMan.Codecs.PDFDecoderInit.Init()
at DTI.ImageMan.Codecs.PdfDecoder..ctor()

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at FPDF_InitLibrary(Void* )
at DTI.ImageMan.Codecs.PDFDecoderInit..cctor()

Up 0 Rated Down
DTI Support  Data Techniques Employee Oct 16, 2015 10:42AM EDT

Hello,

Please download the V 3.30 from the My Products page on our website at http://www.data-tech.com/myproducts.aspx as this build has a newer build of the PDF support in it. No code chanes required on your part, just rebuild and distribute the new files.

Thanks for your interest in our products and please let us know if you have any questions.

Sincerely,
Sean
Data Techniques Support

Up 0 Rated Down
Steve Fowler  Data Techniques Employee Oct 26, 2015 12:06PM EDT

Hi,

I've checked the My Products page and the latest version on their is v3.25?? Is there somewhere else I can download the updates from??

Thanks

Up 0 Rated Down
DTI Support  Data Techniques Employee Oct 26, 2015 12:06PM EDT

Hello,

You can download V 3.30 from:

http://www.data-tech.com/beta/imagemannet330.exe

Thanks for your interest in our products and please let us know if you have any questions.

Sincerely,
Sean
Data Techniques Support

This question is closed to new answers.

Contact Us