Method 'SetDevInfo' cannot be invoked at this time.

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
nkm
User
Posts: 8
Joined: Thu Apr 14, 2011 12:59 am

Method 'SetDevInfo' cannot be invoked at this time.

Post by nkm »

After running an application that uses pxcview.dll instead of AxInterop.PDFXCViewAxLib.Dll/ Interop.PDFXCviewAxLib.dll, the activeX program fails to run error: Method 'SetDevInfo' cannot be invoked at this time. pxcview.dll program has been stopped and will run when restarted.

Is there a way to fix this error so that the activeX program will run again?
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Method 'SetDevInfo' cannot be invoked at this time.

Post by Corwin - Tracker Sup »

Hello nkm,

Could you please give us a bit more detailed description of your problem?
Which programs exactly you are trying to run?
nkm
User
Posts: 8
Joined: Thu Apr 14, 2011 12:59 am

Re: Method 'SetDevInfo' cannot be invoked at this time.

Post by nkm »

C# dll methods. Sample use found in PDF-XChange V4 example applications.

1) FullDemo: Form1.cs
axCoPDFXCview1.SetDevInfo(bsKey, bsCode);
(AxInterop.AxPDFXCviewAxLib.dll)

2) PXCView36: PXCV_Lib.cs
[DllImport("pxcview")]
public static extern int PXCV_Init(out IntPtr hDoc, string Key, string DevCode);

Error occurred after program1 closed, program 2 run then closed, program 1 open. ie:
1: success
2: success
1: failure
2: success (currently using conversion without activex viewer component)
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Method 'SetDevInfo' cannot be invoked at this time.

Post by Corwin - Tracker Sup »

Hi,

I was unable to reproduce such problem with PDFViewerActiveXTestCS.exe and PXCView36_sample_csharp.exe. Try to fully reinstall PDF-XChange Viewer (uninstall first and then install latest version).

HTH.
nkm
User
Posts: 8
Joined: Thu Apr 14, 2011 12:59 am

Re: Method 'SetDevInfo' cannot be invoked at this time.

Post by nkm »

Thank you for looking into the issue Corwin.
The error occurred on a server that is "very buggy". I have been unable to reproduce the error with our in-house servers but was hoping your team had dealt with this issue in the past. It is probably an issue that is specific to the security settings on that machine.
I will reinstall PDF Viewer/ have the site reboot the server after operations are shut down for the weekend.
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6897
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Method 'SetDevInfo' cannot be invoked at this time.

Post by Paul - Tracker Supp »

Hi nkm,

OK - do be sure to let us know what you find.

:-)
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Post Reply