Exception when closing window

Discussions about document viewing.
Post Reply
floele
Posts: 13
Joined: Sun Feb 13, 2011 8:55 pm

Exception when closing window

Post by floele » Sun Feb 13, 2011 10:12 pm

Hi,

I am currently evaluating the GdPicture library and got a problem with the GdViewer. When closing the window that contains an GdViewer control, a NullReferenceException occurs:

Code: Select all

   bei GdPicture.GdViewer.?(? ?, Double ?, Double ?, Double ?, Double ?, Boolean ?)
   bei GdPicture.GdViewer.?(Boolean ?, Boolean ?, Boolean ?, Boolean ?, Boolean ?, Boolean ?, Boolean ?, Boolean ?)
   bei GdPicture.GdViewer.CloseDocument(Boolean NoCLear)
   bei GdPicture.GdViewer.Dispose(Boolean disposing)
   bei System.ComponentModel.Component.Dispose()
   bei System.Windows.Forms.Integration.WindowsFormsHost.Dispose(Boolean disposing)
   bei System.Windows.Interop.HwndHost.WeakEventDispatcherShutdown.OnShutdownFinished(Object sender, EventArgs e)
   bei System.EventHandler.Invoke(Object sender, EventArgs e)
   bei System.Windows.Threading.Dispatcher.ShutdownImplInSecurityContext(Object state)
   bei System.Threading.ExecutionContext.runTryCode(Object userData)
   bei System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bei System.Windows.Threading.Dispatcher.ShutdownImpl()
   bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   bei System.Windows.Threading.Dispatcher.Run()
   bei System.Windows.Application.RunDispatcher(Object ignore)
   bei System.Windows.Application.RunInternal(Window window)
   bei System.Windows.Application.Run(Window window)
   bei System.Windows.Application.Run()
   bei PdfSearcher.App.Main() in C:\Users\Administrator\documents\visual studio 2010\Projects\PdfSearcher\obj\x86\Debug\App.g.cs:Zeile 0.
   bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bei System.Threading.ThreadHelper.ThreadStart()
I'm using .NET 4.0 and embedded the viewer control within a WindowsFormsHost. Other than the exception, it works fine so far. How can I fix this issue?

Best regards,
Florian

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Exception when closing window

Post by Loïc » Sun Feb 13, 2011 10:37 pm

Hi Florin,

Please send application reproducing the problem at https://www.gdpicture.com/support/getting-support-from-our-team
We need to be able to reproduce the problem.

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest