PDF Viewer control - Exception on form unload

Technical support for Spire.PDFViewer

Moderator: iceblue support

PDF Viewer control - Exception on form unload

Postby roger.thord.gray » Mon Jul 24, 2017 11:31 am


The PDFDocument does what I want, except that it throws on Form Unload.

The PDFDocument is embedded in a user control.

"An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in System.Windows.Forms.dll"

Module info: 4.7.2094.0 built by: NET47REL1LAST
Original Location: C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

I am already done with the control at this point; but cannot shut down the form.

I have tried adding
if (pdfViewer.IsDocumentLoaded)

to the user controls 'Dispose'

The exception occurs even if the PDFDocument has not been used .. just drawn on the form.

Any suggestions, please.
Posts: 1
Joined: Sun May 28, 2017 1:41 am

Re: PDF Viewer control - Exception on form unload

Postby Betsy.jiang » Tue Jul 25, 2017 1:59 am

Dear roger.thord.gray,

Thanks for your inquiry.
After an intial testing with the latest Spire.PDFViewer Pack(Hotfix) Version:2.12.19, sorry that I didn't encounter the issue you mentioned. Please provide a sample project here or send it to us(support@e-iceblue.com) via email to help us reproduce the issue.

E-iceblue support team
User avatar
Posts: 1727
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDFViewer

Who is online

Users browsing this forum: No registered users and 0 guests