Initializing a new printer in thread

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, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

DipakJ
User
Posts: 3
Joined: Mon Aug 31, 2009 6:22 am

Initializing a new printer in thread

Post by DipakJ »

The printer initialization takes significant time, so I want to initialize it in thread. But this is adding more complications. I am using a global pointer for the printer, and the thread does the printer initialization but as the thread terminates pointer to the printer becomes invalid.

Please help me if someboday have already done.
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3556
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Initializing a new printer in thread

Post by Ivan - Tracker Software »

Can you provide me a piece of code where you are initializing printer ?
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.
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom

Re: Initializing a new printer in thread

Post by John - Tracker Supp »

Also - I assume this is an SDK question - so moving to the developers forum for the PDF-XChange Drivers API.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com