Print Page | Close Window

Merge wrong files?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3082
Printed Date: 27 Apr 24 at 7:16AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Merge wrong files?
Posted By: JoeBlow
Subject: Merge wrong files?
Date 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?





Replies:
Posted By: Wheeley
Date Posted: 27 Feb 15 at 11:39PM
Why not try clearing the file list after the merge? No use keeping it around.

Wheeley


Posted By: JoeBlow
Date Posted: 02 Mar 15 at 5:15PM
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)?


Posted By: JoeBlow
Date Posted: 03 Mar 15 at 4:23PM
Looks like I might not be that far off -  http://www.quickpdf.org/forum/merging-pdf-files-produces-unexpected-results_topic2723.html" rel="nofollow - http://www.quickpdf.org/forum/merging-pdf-files-produces-unexpected-results_topic2723.html



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk