Multiple Instances

PDF-XChange Editor SDK for Developers

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
jeffp
User
Posts: 926
Joined: Wed Sep 30, 2009 6:53 pm

Multiple Instances

Post by jeffp »

A long time ago in the thread below I asked about the ability to have multiple independent instances of your ActiveX control inside my application. See below.

viewtopic.php?t=25374

Do you now support this?

My use case is this: In my Windows Desktop application, I use your control in two places. One as a full PDF Editor and the second as just a Preview window. It would be nice to keep them completely separate. I've managed to make it work currently, but just updating the control as I move from one context to the other. But multiple instances would be great.
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 13227
Joined: Wed Jan 03, 2018 6:52 pm

Re: Multiple Instances

Post by Daniel - PDF-XChange »

Hello, jeffp

Thank you for the inquiry, ive raised this with the Dev team for review and answer.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
[email protected]
jeffp
User
Posts: 926
Joined: Wed Sep 30, 2009 6:53 pm

Re: Multiple Instances

Post by jeffp »

Thank you. Let me know what they say.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2501
Joined: Thu Jun 30, 2005 4:11 pm

Re: Multiple Instances

Post by Vasyl - PDF-XChange »

Hi Jeff.

Unfortunately, you can't make that separation within a single process. Even if you have two different instances of PXV_Control objects, they still share same preferences/settings, and they use the same PXV_Inst object-singleton. Also they must live in the same UI-thread.

The only way to separate them is to put one of them into another sub-process. That is doable, but it's difficult for sure...

Cheers.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
jeffp
User
Posts: 926
Joined: Wed Sep 30, 2009 6:53 pm

Re: Multiple Instances

Post by jeffp »

Ok. Thanks for the update. I'll just keep doing it the way I am now. No big deal. But separate would be nice.
User avatar
Sean - PDF-XChange
Site Admin
Posts: 1266
Joined: Wed Sep 14, 2016 5:42 pm

Re: Multiple Instances

Post by Sean - PDF-XChange »

:)
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623