How can I pre-load all the DLLs for viewing PDFs

Discussions about document viewing.
Post Reply
msutherlan
Posts: 1
Joined: Tue Jan 13, 2015 1:53 am

How can I pre-load all the DLLs for viewing PDFs

Post by msutherlan » Tue Jan 13, 2015 1:57 am

Very happy with the speed of your control for viewing PDFs, but the very first time that a PDF is viewed, there is a big delay which I would assume is the support DLLs being loaded. Is there any way to ask the control to pre-load all the DLLs necessary to display a PDF before an actual preview is required?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: How can I pre-load all the DLLs for viewing PDFs

Post by Loïc » Sun Jan 18, 2015 3:14 am

Hello there,

The delay can be explained by the digital signature assemblies validation operated by your operating system and by the JIT compilation which can take few seconds the first time the GdPicture code is ran (usually between 0.1 second and 2 seconds depending on the content of the file to view). Your application can also be a suspect :)

That said, there is always some tricks to preload assemblies, here a link talking briefly about a way to achieve that: http://stackoverflow.com/questions/4895 ... t-assembly

Hope this helps!

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest