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.
Initializing a new printer in thread
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
-
- Site Admin
- Posts: 3556
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
Re: Initializing a new printer in thread
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.
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.
-
- Site Admin
- Posts: 5219
- Joined: Tue Jun 29, 2004 10:34 am
- Location: United Kingdom
Re: Initializing a new printer in thread
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
Best regards
Tracker Support
http://www.tracker-software.com