Com exception on get_printer - Win 7 64 bit

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

Post Reply
alessandro-r
User
Posts: 8
Joined: Thu Jun 30, 2011 7:40 am

Com exception on get_printer - Win 7 64 bit

Post by alessandro-r »

Hello,

I have downloaded PDFX4API.zip (version 195) and I have installed it on Win7 64 bit.
I build the PDFDriverAPI C# sample on Visual Studio 2010, but it fails at run time. I get an exception in Interop.PXCComLib >> Error code: -2147467259 at the line:

PDFPrinter = (PXCComLib.CPXCPrinter)prnFactory.get_Printer("", "Simple PDF-XChange", "<REG CODE>", "<DEV CODE>");

I have already tried manually to set the reference to the com component, but it doesn't work.
I have also tried to change the platform configuration from AnyCPU to x86.
I get the same result on Win 2008 Server R 2.

On a 32 bit machines it works fine!

Do you have any idea?

Thank you!

Alessandro
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Com exception on get_printer - Win 7 64 bit

Post by Ivan - Tracker Software »

Does it work ok when you set the platform configuration to x64 ?
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.
alessandro-r
User
Posts: 8
Joined: Thu Jun 30, 2011 7:40 am

Re: Com exception on get_printer - Win 7 64 bit

Post by alessandro-r »

Same result with x64. Com Exception -2147467259
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17901
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Com exception on get_printer - Win 7 64 bit

Post by Tracker Supp-Stefan »

Hello alessandro,

We released a new build last night, and while your problem has not been investigated in details and I can not assure you the new build will fix it - can you please still try with it and let us know how it goes?

Thanks,
Stefan
alessandro-r
User
Posts: 8
Joined: Thu Jun 30, 2011 7:40 am

Re: Com exception on get_printer - Win 7 64 bit

Post by alessandro-r »

Hello!

Unfortunately nothing has changed. Same error with the version 196. The driver works properly if you use it directly, but the COM component crashes.
Just to give you an additional information, when you run the sample, a printer without name appears before the crash. I’ve attached a screen capture.

Thank you for any suggestion.

Alessandro
Attachments
Screen.zip
(57.46 KiB) Downloaded 256 times
alessandro-r
User
Posts: 8
Joined: Thu Jun 30, 2011 7:40 am

Re: Com exception on get_printer - Win 7 64 bit

Post by alessandro-r »

Do you have any news?
We tested the driver also on other 64 bit machines (Win 7, Windows 2008 Server R 2, Windows 2003 Server) but the COM component crashes every time with the exception I mentioned you last time. Same problem also with your sample \Examples\Bin\CExAPI.exe

At the end, on a 64 bit machine it doesn't work. Instead, on a 32 bit machine, it works very fine! We would like to adopt your driver in our solutions, but we need also a 64 bit compatibility.

Are we doing any mistake? Or is it a problem that you already know?

Thank you in advance for your help!
Alessandro
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6897
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Com exception on get_printer - Win 7 64 bit

Post by Paul - Tracker Supp »

HI alessandro-r,

Ivan, who has been dealing with this has been out of the office for a few days. he should be back tomorrow to look into this. Your patience is appreciated.

:
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Com exception on get_printer - Win 7 64 bit

Post by Ivan - Tracker Software »

Can you check if there is pxccom.tlb file located in the same folder where pdfSaver4.exe ? (by default it is: "C:\Program Files\Tracker Software\PDF-XChange 4")
if it is there, please try to run pdfSaver4.exe /RegServer
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.
alessandro-r
User
Posts: 8
Joined: Thu Jun 30, 2011 7:40 am

Re: Com exception on get_printer - Win 7 64 bit

Post by alessandro-r »

The file pxccom.tlb is located in "C:\Program Files (x86)\Tracker Software\PDF-XChange 4 API\pdfSaver" folder. The same folder contain the file pdfSaver4.exe

I tryed to run pdfSaver4.exe /RegServer, but nothing has changed. The COM component crashes during the test.
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Com exception on get_printer - Win 7 64 bit

Post by Ivan - Tracker Software »

Can you check if example CExAPI.exe works on your side ? (it is located in Bin subfolder of Examples)
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.
alessandro-r
User
Posts: 8
Joined: Thu Jun 30, 2011 7:40 am

Re: Com exception on get_printer - Win 7 64 bit

Post by alessandro-r »

Also CExAPI.exe doesn't work. You can see the error message in the attached screenshot

Alessandro
Attachments
Screen2.zip
(30.47 KiB) Downloaded 245 times
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3549
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Com exception on get_printer - Win 7 64 bit

Post by Ivan - Tracker Software »

Do you have any Antivirus/Firewall applications installed on this machine? If yes, maybe you can try to check if the problem still exists when they are turned off? Sometimes they may block creation of COM objects - ZoneAlarm for example (I don't know why).
Also, if it is possible, I would like to use TeamViewer to get remove access to your computer to check some registry settings regarding the registration of our API's COM controls.
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.
alessandro-r
User
Posts: 8
Joined: Thu Jun 30, 2011 7:40 am

Re: Com exception on get_printer - Win 7 64 bit

Post by alessandro-r »

No antivirus active. About a firewall, there is only Windows Firewall. Same problem if it is deactivate.

We can arrange a teamviewer session (or NTR Support if you prefere) Please, write me an email in order to exchange the connection parameters.

Alessandro
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6897
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Com exception on get_printer - Win 7 64 bit

Post by Paul - Tracker Supp »

Hi alessandro-r,

I have sent you an email to the address used in this forum account detailing what we need to do to make this remote session work.

Looking forward to hearing back from you.

Paul
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17901
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Com exception on get_printer - Win 7 64 bit

Post by Tracker Supp-Stefan »

Hello Alessandro,

Following your yesterday TeamView session with Ivan, we managed to reproduce and fix the problem.
The new and updated installer files are already uploaded on our website - so please do download them and check again.

Best,
Stefan
alessandro-r
User
Posts: 8
Joined: Thu Jun 30, 2011 7:40 am

Re: Com exception on get_printer - Win 7 64 bit

Post by alessandro-r »

Thank you!
It works very fine!
Alessandro
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17901
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Com exception on get_printer - Win 7 64 bit

Post by Tracker Supp-Stefan »

Thanks for letting us know Alessandro!

Closing this case then!

Cheers,
Stefan
Post Reply