IPXCControlEx.RemoveOrphanPrinters() - multiple instances

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan

Post Reply
Posts: 20
Joined: Wed Jul 16, 2008 8:38 am

IPXCControlEx.RemoveOrphanPrinters() - multiple instances

Post by nick.tucker » Wed Aug 24, 2016 2:49 pm

Hi Tracker.

I have just upgraded and ported my C++ code from using PDF-XChange 4.0 Drivers API SDK to PDF-XChange 6.

I notice the new sample C source code (CExAPI) shows IPXCControlEx.RemoveOrphanPrinters() being called as soon as the factory object is created to remove any old printer objects that haven't been cleanly deinitialised.

I've found that if two separate executables do this simultaneously, one sometimes causes the other to fail (issue unexpected dialogs).

Nick Tucker

Ivan - Tracker Software
Site Admin
Posts: 3643
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: IPXCControlEx.RemoveOrphanPrinters() - multiple instance

Post by Ivan - Tracker Software » Fri Aug 26, 2016 5:10 am

As usual RemoveOrphanedPrinters should not remove printers associated with launched app as it should be 'locked' by this app.
Will try to reproduce the issue locally and solve it as soon as possible.
Tracker Software (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.

Post Reply