RadPDFViewer - UnloadDocument - Blocking

1 Answer 86 Views
PdfViewer and PdfViewerNavigator
James
Top achievements
Rank 1
Veteran
James asked on 20 May 2022, 06:05 PM

There seems to be a random issue when invoking the UnloadDocument method. The method blocks and locks up the application.

It happens with random PDF forms. I have tried testing with different PDF forms and it seems completely random.

 


James
Top achievements
Rank 1
Veteran
commented on 20 May 2022, 06:16 PM

Here is the call stack.

James
Top achievements
Rank 1
Veteran
commented on 20 May 2022, 06:57 PM

Typically, I load a PDF and navigate to a specific page programmatically. Then, I close the host form (invoking the UnloadDocument() method in the Form_Closing( ) event).

 

For those folks that need a workaround, changing the page programmatically before invoking UnloadDocument( ) seems to solve the issue. However, I think there is still an issue somewhere in Telerik's LoadOnDemandPagesCacheManager.

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 25 May 2022, 08:54 AM

Hi James,

Thank you for the provided details.

I have tried to reproduce this exception but to no avail. Looking at the exception it seems that some operations are executed after the document is unloaded. Could it be possible to create a sample project which mimics your set-up so that I can test it on my side? This way I want to avoid any misunderstanding in the implementation. Also, what is the type of the exception?

I am looking forward to your reply.

Regards,
Dinko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
PdfViewer and PdfViewerNavigator
Asked by
James
Top achievements
Rank 1
Veteran
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or