number of handles goes up significantly

PDF-XChange Editor SDK for Developers

Moderators: Tracker Support, TrackerSupp-Daniel, Paul - Tracker Supp, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan, Ivan - Tracker Software

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
AteBe
User
Posts: 56
Joined: Thu Dec 06, 2018 7:02 am

number of handles goes up significantly

Post by AteBe » Wed Jun 26, 2019 12:30 pm

Hello,

we took a deeper look at our java-process that uses the PDFXChangeEditor. After opening a pdf for display with the API-Funktion OpenDocFromPath() in 'Single Document Mode' the number of handles goes up significantly.
Number of handles after showing around 1500 PDFs.png
Some of the handles are never released, although it seems that they are no longer needed. Using Windows' Ressource Monitor we saw that a lot of file handles are created (see screenshot File Handles).
File Handles.png
Every time we open a new pdf by using the API a new directory in a temporary PDFXEdit.SDK-folder is created.
They all start with pdfx- and contain 3 files (2 -tmp with size 512kb and 256 kb and one called pdfx.lck with size 0 kb).
Created Folders.png
Created Files in Folder.png
Created Files in Folder.png (11.46 KiB) Viewed 41 times
When shutting down the application (and therefore PDFXChangeEditor), the files within the directories are deleted, but the directories themselves keep existing.
The folders and files keep existing during runtime even when we explicitly closed the opened document via API.

So maybe there are opening-options that need to be set explicitly so that these temporary folders are deleted/released after closing a document or showing a new document?

AteBe

User avatar
Sasha - Tracker Dev Team
User
Posts: 4088
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: number of handles goes up significantly

Post by Sasha - Tracker Dev Team » Wed Jun 26, 2019 12:52 pm

Hello AteBe,

I've described why the handles are growing in this topic:
viewtopic.php?f=66&t=32780#p134501

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply