Run time error when distributing ActiveX

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
WayneH
User
Posts: 48
Joined: Mon May 21, 2007 5:39 pm

Run time error when distributing ActiveX

Post by WayneH »

I'm have some problems distributing my app with the PDFXCViewAx.dll

When I run my app on my Dev environment, all is well.

However, once I try to run it after installing my app on another machine, I get this error:
Run Time Error "-2147418113"
Automation Error
Catastrophic Failure

I'm developing and installing on Win XP Pro SP2.
PDFXCViewAx.dll version 2.0.39.2

I include the following files in my installer:
PDFXCviewAx.dll (registered)
resource.dat
pxcview.dll
pxclib.dll
ixclib.dll
fm40tiff.dll
fm40base.ll
dscrt.dll
xccdx40.dll
xcpro40.dll
WayneH
User
Posts: 48
Joined: Mon May 21, 2007 5:39 pm

Re: Run time error when distributing ActiveX

Post by WayneH »

An additional note:

I did some tests and found that it is crashing (as described above) at this line:
(VB6)

CoPDFX.SetDevInfo myKey, MySerial

(Of course myKey and mySerial are Strings containing my info, which, again, work correctly on my Dev machine)
WayneH
User
Posts: 48
Joined: Mon May 21, 2007 5:39 pm

Re: Run time error when distributing ActiveX

Post by WayneH »

More information:

The problem has nothing to do with my License - it's just the first call I make.

The problem occurs with ANY use of the ActiveX.....
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Run time error when distributing ActiveX

Post by John - Tracker Supp »

Can I suggest you use the distribution file supplied by us - rather than managing your own and see if this helps - it can be called silently - so there are no screen messages user the /verysilent switch

the file is available here :

https://www.pdf-xchange.com/downloads/dev/

(3rd item in the Viewer download section)
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
WayneH
User
Posts: 48
Joined: Mon May 21, 2007 5:39 pm

Re: Run time error when distributing ActiveX

Post by WayneH »

I've tried the distribution package and I do not want to use it.

First of all, it installs many more items than I want to distribute - for example, the PDF viewer.
Second, it adds 8 MB to my installer.
Third, it has too many dialogs.
Fourth, it creates new Program Menu items.

I would like to resolve my problem with distributing the DLLs/OCX instead which is why I chose the
Developers SDK in the first place.

Please help me resolve my installer problems.


Thanks.
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: Run time error when distributing ActiveX

Post by Lzcat - Tracker Supp »

Probles is that you cannot use ActiveX dll without Viewer - it must be istalled and registered (it may be invisible to user). You can (actually must!) customize installation by passing additional parameters to it, so it will not display any additional dialogs (in silent mode).
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Run time error when distributing ActiveX

Post by Corwin - Tracker Sup »

WayneH wrote:I include the following files in my installer...
PDFXCview.exe file is also necessary (there is no way you can run Viewer ActiveX without this file). And don't forget to register commponentes by executing next commands:

Code: Select all

regsvr32 PDFXCviewAx.dll
PDFXCView.exe /RegServer
WayneH
User
Posts: 48
Joined: Mon May 21, 2007 5:39 pm

Re: Run time error when distributing ActiveX

Post by WayneH »

That seems pretty strange to me - that I have to install and register an exe ?

How do I 'hide' this?

Can I rename the exe before I register it?
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Run time error when distributing ActiveX

Post by Corwin - Tracker Sup »

How do I 'hide' this?
Well, before registration, you can put "PDFXCView.exe" file (with "resource.dat") in any folder you wish. User may not even know about this file.
Can I rename the exe before I register it?
Yes, you can rename it (but not the file extension). Anyway it's not recommended..
WayneH
User
Posts: 48
Joined: Mon May 21, 2007 5:39 pm

Re: Run time error when distributing ActiveX

Post by WayneH »

During uninstallation, how do Unregister the exe?

Is just:

PDFXCView.exe /unregserver

??
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Run time error when distributing ActiveX

Post by Corwin - Tracker Sup »

PDFXCView.exe /unregserver
Yes, this should work.
WayneH
User
Posts: 48
Joined: Mon May 21, 2007 5:39 pm

Re: Run time error when distributing ActiveX

Post by WayneH »

Ok thanks - I'll give it a try...
Post Reply