Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Merge wrong files? |
Post Reply |
Author | |
JoeBlow
Beginner Joined: 26 Feb 15 Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 27 Feb 15 at 12:09AM |
QuickPDF COM DLL 7.22 used from .NET code (32-bit). Windows service running multiple threads creating reports etc. Often a packet of reports gets merged into a single document at the end. Yesterday a client reported that they have received a combined report, which appeared to have merged some of their reports with reports belonging to a different company. Our first line support was able to repeatedly reproduce the issue. Unfortunately by the time I got involved, the setup was changed and I couldn't see it happen anymore. Nevertheless mixing data is quite a serious issue and I have to investigate further. The individual reports appeared to have been generated fine, names are unique across the board (GUIDs), and the report packet lists are kept in two different databases. If there was some sort of database connection mix-up, then the client would have received a combined report in which all reports would have been from the wrong database. At the moment the only plausible scenario I can come up with, is if the component somehow retained (or regained) some sort of state between runs. Merge is done with ClearFileList/AddToFileList/MergeFileList. An instance of the component is (supposedly) created and destroyed with every run. Has anybody experienced a similar issue? Any ideas? |
|
Wheeley
Senior Member Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
Post Options
Thanks(0)
|
Why not try clearing the file list after the merge? No use keeping it around.
Wheeley |
|
JoeBlow
Beginner Joined: 26 Feb 15 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
It is a multi-threaded service, where potentially more than one thread can have an instance of the component (different instances!). It is my understanding (or rather a guess, since I didn't find anything about it) that the "file list" concept is "local", per instance of the component and instances don't share "global" state (file list or otherwise). Is this correct? Can a "file list" somehow leak from one instance to another (and get stuck there)? |
|
JoeBlow
Beginner Joined: 26 Feb 15 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
Looks like I might not be that far off - http://www.quickpdf.org/forum/merging-pdf-files-produces-unexpected-results_topic2723.html
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store