Run time error when distributing ActiveX
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Run time error when distributing ActiveX
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
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
Re: Run time error when distributing ActiveX
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)
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)
Re: Run time error when distributing ActiveX
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.....
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.....
- 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
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)
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
Best regards
Tracker Support
http://www.tracker-software.com
Re: Run time error when distributing ActiveX
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.
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.
- Lzcat - Tracker Supp
- Site Admin
- Posts: 677
- Joined: Thu Jun 28, 2007 8:42 am
Re: Run time error when distributing ActiveX
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.
Tracker Software
Project manager
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Run time error when distributing ActiveX
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:WayneH wrote:I include the following files in my installer...
Code: Select all
regsvr32 PDFXCviewAx.dll
PDFXCView.exe /RegServer
Re: Run time error when distributing ActiveX
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?
How do I 'hide' this?
Can I rename the exe before I register it?
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Run time error when distributing ActiveX
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.How do I 'hide' this?
Yes, you can rename it (but not the file extension). Anyway it's not recommended..Can I rename the exe before I register it?
Re: Run time error when distributing ActiveX
During uninstallation, how do Unregister the exe?
Is just:
PDFXCView.exe /unregserver
??
Is just:
PDFXCView.exe /unregserver
??
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Run time error when distributing ActiveX
Yes, this should work.PDFXCView.exe /unregserver
Re: Run time error when distributing ActiveX
Ok thanks - I'll give it a try...