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
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/.
Here is the call stack.
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.