Crashing while multiple combines

A forum for questions or concerns related to the PDF-XChange Core API SDK

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

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.
Freund
User
Posts: 44
Joined: Fri Mar 16, 2018 9:51 am

Crashing while multiple combines

Post by Freund »

Hi,

we have to Combine multiple (5000) PDF-Files.
We are running into an exception after about 2000 files.

I put an other task into your Core Demo app (15.1 File Combine).
CoreDemo.7z

We can see, that memory and handles are running higher and higher, til crash.

What can we do?

Regards, Christian Freund
You do not have the required permissions to view the files attached to this post.
User avatar
Roman - Tracker Supp
Site Admin
Posts: 332
Joined: Sun Nov 21, 2004 3:19 pm

Re: Crashing while multiple combines

Post by Roman - Tracker Supp »

Hi Christian,

Please try these modifications in your project settings:
image.png
You do not have the required permissions to view the files attached to this post.
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3586
Joined: Thu Jul 08, 2004 10:36 pm

Re: Crashing while multiple combines

Post by Ivan - Tracker Software »

Also, please add

Code: Select all

Marshal.ReleaseComObject(sQDoc);
Marshal.ReleaseComObject(sTDoc);
after closing the documents.
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.