Crach application PDF-XChange Viewer ActiveX SDK on some PCs

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

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

Thomas-bss
User
Posts: 5
Joined: Tue Oct 01, 2013 11:41 am

Crach application PDF-XChange Viewer ActiveX SDK on some PCs

Post by Thomas-bss »

Hello! Sorry for my bad english.

I have an application on C#, which uses your component. This component crashes on same PCs (3 PC on Windows 7 x64 with many free RAM), but it works good on other PCs. When I want to browse .pdf file on the problem PCs, I receive error (screenshot pdf2.jpg https://www.dropbox.com/s/kvbhdgxn0tdz931/pdf2.jpg)

I asked my developer to make me a testapplication with your components. You can download it from https://www.dropbox.com/s/zrne4mtdzlofd ... Viewer.rar Version of your components you can find out from files in this archive. Click TestPDFApplication.exe to run it. When I run it on problem PCs (Windows 7 x64 with 8 GB RAM, 4 GB RAM is free), your component crashes. When I run it on normal PC's, I see window with button OPEN. It's good, but on problem PC's, I don't see any windows, because your component crases. Thanks for help me! :)


Application: TestPDFApplication.exe
Framework Version: v4.0.30319
Description. The process was terminated due to an unhandled exception.
Exception Info: System.OutOfMemoryException
Stack:
at System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
at System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
at System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream, System.Windows.Markup.ParserContext)
at System.Windows.Application.DoStartup()
at System.Windows.Application.<.ctor>b__1(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.runTryCode(System.Object)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at WpfApplication3.App.Main()



My problem PC have Windows 7 x64 with 8 GB RAM, 4 GB RAM is free.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Crach application PDF-XChange Viewer ActiveX SDK on some

Post by Vasyl - PDF-XChange »

Hi, Thomas.

Your version is too old. Current version is 2.5.213. Please update to latest version and try again..
Please note: by COM-standard the any method of ActiveX can return error code in any call-time. For example - when you specified an invalid path for document the OpenDocument() routine will return to you the ERROR_FILE_NOT_FOUND wrapped in HRESULT. In this case the .NET framework generates exception and to avoid crash of your program you must use try/catch brackets:

Code: Select all

try
{
      axCoPDFXCview1.OpenDocument(srcFileName, null, null, 0);
}
catch (Exception ex)
{
      int errCode = System.Runtime.InteropServices.Marshal.GetHRForException(ex);
}
Best
Regards.
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.
Thomas-bss
User
Posts: 5
Joined: Tue Oct 01, 2013 11:41 am

Re: Crach application PDF-XChange Viewer ActiveX SDK on some

Post by Thomas-bss »

Thanks! I got a license serial key on your product from my developer. Where I can show it (license key) and download new version ?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Crach application PDF-XChange Viewer ActiveX SDK on some

Post by Stefan - PDF-XChange »

Hello Thomas,

You can download without "showing" the license key:
https://www.pdf-xchange.com/product/downloads/sdk
Just make sure to include the key and developer codes at the relevant place in your source.

Also if your license key was provided more than several months ago - you might need to get that updated. You can write to sales@pdf-xchange.com with a link back to this topic and your order number/license key and we will check that for you.

Regards,
Stefan
Thomas-bss
User
Posts: 5
Joined: Tue Oct 01, 2013 11:41 am

Re: Crach application PDF-XChange Viewer ActiveX SDK on some

Post by Thomas-bss »

Thanks for very fast answer. :)
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Crach application PDF-XChange Viewer ActiveX SDK on some

Post by Stefan - PDF-XChange »

:)
Thomas-bss
User
Posts: 5
Joined: Tue Oct 01, 2013 11:41 am

Re: Crach application PDF-XChange Viewer ActiveX SDK on some

Post by Thomas-bss »

Sorry for bad english (use google translate). :)

My developer found the time to upgrade the version of your component. He reported me that introduced our serial number and your product is accepted it well, but he still works as a demo version. Prompt, what will be our next steps? We need again to buy your product or can still use the current key?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Crach application PDF-XChange Viewer ActiveX SDK on some

Post by Stefan - PDF-XChange »

Hi Thomas,

I mentioned that earlier but maybe it didn't translate well.
Your Viewer SDK license key most likely needs to be updated. Please write to sales@pdf-xchange.com and send us your order number (or the actual License key), and we will let you know if you can have this latest build as a free upgrade or if an upgrade fee is necessary.

Please don't post any license keys here !!!

Regards,
Stefan
Thomas-bss
User
Posts: 5
Joined: Tue Oct 01, 2013 11:41 am

Re: Crach application PDF-XChange Viewer ActiveX SDK on some

Post by Thomas-bss »

Thanks :)
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Crach application PDF-XChange Viewer ActiveX SDK on some

Post by Stefan - PDF-XChange »

Hi Thomas,

Thanks for the e-mail.
The maintenance on your license has expired. I've written back to you with quotes of how much it will cost for you to renew that. Once you renew you would be entitled to a new license key that will be valid for the latest Viewer SDK build.

Regards,
Stefan