Controlling Memory Usage

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Controlling Memory Usage

Post by docu-track99 »

Hi

We have noticed that the memory usage of the viewer control can get very high at times. Is there anyway to control how much memory the viewer control can use?

Thanks.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Controlling Memory Usage

Post by Stefan - PDF-XChange »

Hi docu-track99,

Yes in Edit -> Preferences there is Performance tab where you can set up the maximum Memory and Number of Threads the Viewer should be allowed to use.

Cheers,
Stefan
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Controlling Memory Usage

Post by docu-track99 »

Thanks for the quick reply, but is there a programmatic way to do it?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Controlling Memory Usage

Post by Stefan - PDF-XChange »

Hi,

Unfortunately there is no direct way. The only solution I can think of is to export settings from a viewer installation and import them to the ActiveX

Regards,
Stefan
ugradedeveloper
User
Posts: 223
Joined: Wed Aug 22, 2007 4:40 pm

Re: Controlling Memory Usage

Post by ugradedeveloper »

There are Named Objects in the SDK you can use here, for example Performance.MemUsage and Performance.MaxThreads. See section 2.2.2.12 in the documentation.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Controlling Memory Usage

Post by Stefan - PDF-XChange »

Thanks ugradedeveloper.

:)