Error OCRing large file
Posted: Wed Dec 21, 2016 9:11 am
When I try to ocr a file I get this error:
System.Runtime.InteropServices.SEHException was unhandled
Message=Een extern onderdeel heeft een uitzondering veroorzaakt.
Source=
ErrorCode=-2147467259
StackTrace:
bij _Namespace..OCR_MakeSearchable(IntPtr pdf, PXO_Options& Options, IntPtr pagelist)
bij _Namespace..OCR_MakeSearchable_NoRef(IntPtr pdf, PXO_Options Options) in C:\Visual Studio Projects\\\.cs:regel 13
bij WindowsFormsApplication1.Form1.button2_Click(Object sender, EventArgs e) in C:\Visual Studio Projects\\WindowsFormsApplication1\Form1.cs:regel 114
bij System.Windows.Forms.Control.OnClick(EventArgs e)
bij System.Windows.Forms.Button.OnClick(EventArgs e)
bij System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bij System.Windows.Forms.Control.WndProc(Message& m)
bij System.Windows.Forms.ButtonBase.WndProc(Message& m)
bij System.Windows.Forms.Button.WndProc(Message& m)
bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bij System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bij System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bij System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bij System.Windows.Forms.Application.Run(Form mainForm)
bij WindowsFormsApplication1.Program.Main() in C:\Visual Studio Projects\\WindowsFormsApplication1\Program.cs:regel 18
bij System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
bij System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bij Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bij System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bij System.Threading.ThreadHelper.ThreadStart()
InnerException:
BTW I Could not attach file: The file is too big, maximum allowed size is 5 MiB...
System.Runtime.InteropServices.SEHException was unhandled
Message=Een extern onderdeel heeft een uitzondering veroorzaakt.
Source=
ErrorCode=-2147467259
StackTrace:
bij _Namespace..OCR_MakeSearchable(IntPtr pdf, PXO_Options& Options, IntPtr pagelist)
bij _Namespace..OCR_MakeSearchable_NoRef(IntPtr pdf, PXO_Options Options) in C:\Visual Studio Projects\\\.cs:regel 13
bij WindowsFormsApplication1.Form1.button2_Click(Object sender, EventArgs e) in C:\Visual Studio Projects\\WindowsFormsApplication1\Form1.cs:regel 114
bij System.Windows.Forms.Control.OnClick(EventArgs e)
bij System.Windows.Forms.Button.OnClick(EventArgs e)
bij System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bij System.Windows.Forms.Control.WndProc(Message& m)
bij System.Windows.Forms.ButtonBase.WndProc(Message& m)
bij System.Windows.Forms.Button.WndProc(Message& m)
bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bij System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bij System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bij System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bij System.Windows.Forms.Application.Run(Form mainForm)
bij WindowsFormsApplication1.Program.Main() in C:\Visual Studio Projects\\WindowsFormsApplication1\Program.cs:regel 18
bij System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
bij System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bij Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bij System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bij System.Threading.ThreadHelper.ThreadStart()
InnerException:
BTW I Could not attach file: The file is too big, maximum allowed size is 5 MiB...