logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Guest  
#1 Posted : Monday, February 1, 2016 3:31:45 AM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
Hi,

Somebody can tell me how can i catch this exception with toolstripsearch when i search an occurence in my pdf.

Thank you

exception System.IndexOutOfRangeException
HResult=-2146233080
Message=The page index is out of range.
Source=Patagames.Pdf.WinForms
StackTrace:
at Patagames.Pdf.Net.Controls.WinForms.PdfViewer.PageToClient(Int32 pageIndex, PointF pt)
at Patagames.Pdf.Net.Controls.WinForms.ToolBars.PdfToolStripSearch.ScrollToRecord(Int32 currentRecord)
at Patagames.Pdf.Net.Controls.WinForms.ToolBars.PdfToolStripSearch.OnCurrentRecordChanged(ToolStripControlHost item, Int32 currentRecord)
at Patagames.Pdf.Net.Controls.WinForms.ToolBars.PdfToolStripSearch.SearchBar_CurrentRecordChanged(Object sender, EventArgs e)
at Patagames.Pdf.Net.Controls.WinForms.ToolBars.SearchBar.set_CurrentRecord(Int32 value)
at Patagames.Pdf.Net.Controls.WinForms.ToolBars.SearchBar.ProcessDownClick()
at Patagames.Pdf.Net.Controls.WinForms.ToolBars.SearchBar.Button_MouseUp(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at Planche.App.Main() in C:\Users\9305924K\Desktop\Planche\Master\Planche\Planche\obj\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Edited by moderator Sunday, February 7, 2016 7:57:59 AM(UTC)  | Reason: Not specified

Paul Rayman  
#2 Posted : Monday, February 1, 2016 8:40:02 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,115

Thanks: 8 times
Was thanked: 130 time(s) in 127 post(s)
Under what circumstances the exception is thrown?
When the PdfViewer is in a SinglePage view mode?

If so then it's a bug.
Fixed in 2.14.9.2595 http://forum.patagames.com/posts/m176-Version-2-14-9-2595-was-released-on-Feb-01--2016

Edited by user Monday, February 1, 2016 8:40:54 AM(UTC)  | Reason: Not specified

Guest  
#3 Posted : Monday, February 1, 2016 9:04:55 AM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
Yes in single page view mode.
When i search an occurence in a pdf who contains in many pages i have this exception.
Paul Rayman  
#4 Posted : Monday, February 1, 2016 9:51:31 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,115

Thanks: 8 times
Was thanked: 130 time(s) in 127 post(s)
Then update to the version 2.14.9.2595. It fixes this issue.
Guest  
#5 Posted : Tuesday, February 2, 2016 2:40:55 AM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
Ok it works thanks a lot
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.