Empty Folders in AppData\Local\Temp\PDFXEdit.SDK are not deleted

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
AteBe
User
Posts: 59
Joined: Thu Dec 06, 2018 7:02 am

Empty Folders in AppData\Local\Temp\PDFXEdit.SDK are not deleted

Post by AteBe » Wed Jul 10, 2019 7:32 am

Hallo,
every time we open a new pdf by using the API in AppData\Local\Temp\PDFXEdit.SDK a new 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 151 times
The folders and files keep existing during runtime even when we explicitly closed the opened document via API.

When shutting down the application (and therefore PDFXChangeEditor), the files within the directories are deleted, but the directories themselves keep existing.

The same problem was described in the entry viewtopic.php?f=62&t=30164&p=119380&hil ... er#p119380 unfortunately without a solution.

So what do I have to do, so that these temporary folders are deleted/released after closing a document, showing a new document or at least after closing the application.

AteBe

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

Re: Empty Folders in AppData\Local\Temp\PDFXEdit.SDK are not deleted

Post by Sasha - Tracker Dev Team » Thu Jul 11, 2019 6:45 am

Hello AteBe,

These folders will be deleted after the next SDK launch. There can be a situation where we try to delete these folders but someone still holds them thus we cannot remove them when closing for sure. But we clean them up when the SDK is being launched - thus there won't be any overhead. As the Java holds the objects, like we are talking in the other thread, the temp files can still be in use and Windows won't remove the folder itself on close.

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

AteBe
User
Posts: 59
Joined: Thu Dec 06, 2018 7:02 am

Re: Empty Folders in AppData\Local\Temp\PDFXEdit.SDK are not deleted

Post by AteBe » Mon Jul 15, 2019 8:00 am

Hello Alex,

after stopping our application, Java will also be shut down and all files will be released.
The evidence for this is that I can use the Explorer to delete the remaining empty folders.

According to your statement, these folders should be deleted when I restart the SDK.
This is not the case. Although the folders are no longer locked, they are not deleted.

Is there a function or a setting that I have to call or set additionally, so that the folders are deleted?

AteB

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

Re: Empty Folders in AppData\Local\Temp\PDFXEdit.SDK are not deleted

Post by Sasha - Tracker Dev Team » Wed Jul 17, 2019 1:02 pm

Hello AteBe,

I have investigated this deeper - it seems that when you exit the program by breaking the debug the folders are not being removed. Also, the SDK does not delete folders in the Temp folder and it should have done that - that's the problem on our side.

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

AnKeilha
User
Posts: 35
Joined: Fri Apr 27, 2018 11:17 am

Re: Empty Folders in AppData\Local\Temp\PDFXEdit.SDK are not deleted

Post by AnKeilha » Fri Sep 20, 2019 7:44 am

Is there a ticket (i.e. RT#) for this?

Post Reply