Print Page | Close Window

Generic Error

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3946
Printed Date: 15 Oct 21 at 9:22PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Generic Error
Posted By: Kenneth K.
Subject: Generic Error
Date Posted: 23 Aug 21 at 4:34PM
We are receiving a generic, "System.Runtime.InteropServices.SEHException" when we attempt to print to a printer. Is there a way to enable more detailed logging in this library? The version in use is 17.11.1.0.



Replies:
Posted By: tfrost
Date Posted: 23 Aug 21 at 6:56PM
What programming language are you using? I assume C# because this error means that managed code has encountered an exception in unmanaged code.

It's hard to say what the cause might be. Does it happen with all PDF files and all printers? If you show some of the code you are using to print, someone here with more .Net knowledge than me may spot something wrong. It is relatively common for an exception to result from passing an invalid parameter to the library. But unless it happens with only one document or only one printer, this is a likely cause.


Posted By: Ingo
Date Posted: 24 Aug 21 at 10:12AM
Only an idea...
Like TFrost is telling about "unmanaged code".
There are different types of the library available.
Do you use the normal dll (means unmanaged code)?
It would be good to have a look into your relevant code part as well.
After each function call you can insert a LastErrorCode - perhaps the real error raises earlier before printing?

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk