number of handles goes up significantly

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, 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
Posts: 63
Joined: Thu Dec 06, 2018 7:02 am

number of handles goes up significantly

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


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 161 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?


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

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:

Join us at Google+:
Subscribe at:

Post Reply