This project has moved. For the latest updates, please go here.
2
Vote

Unhanded Exception

description

Hi,

It is a great software !!!


I am getting below exception when I am trying to test.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: Form doesn't have sufficient control information to perform this operation
at OmrMarkEngine.Core.Processor.ScannedImage.PrepareProcessing() in c:\Users\fyfej\Source\Repos\omrmarkengine\MarkEngine.Core\Processor\ScannedImage.cs:line 323
at OmrMarkEngine.Core.Engine.ApplyTemplate(OmrTemplate template, ScannedImage image) in c:\Users\fyfej\Source\Repos\omrmarkengine\MarkEngine.Core\Engine.cs:line 62
at ScannerTemplate.frmMain.bwImageProcess_DoWork(Object sender, DoWorkEventArgs e) in c:\Users\fyfej\Source\Repos\omrmarkengine\ScannerTemplate\frmMain.cs:line 610
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1063.1 built by: NETFXREL3STAGE

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

TemplateDesigner
Assembly Version: 0.8.7.0
Win32 Version: 0.8.7.0

CodeBase: file:///C:/Program%20Files%20(x86)/OMR%20Mark%20Engine/TemplateDesigner.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

OmrMarkEngine.Core
Assembly Version: 0.8.10.0
Win32 Version: 0.8.10.0

CodeBase: file:///C:/Program%20Files%20(x86)/OMR%20Mark%20Engine/OmrMarkEngine.Core.DLL

FyfeSoftware.Sketchy.Design
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/OMR%20Mark%20Engine/FyfeSoftware.Sketchy.Design.DLL

FyfeSoftware.Sketchy.Core
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/OMR%20Mark%20Engine/FyfeSoftware.Sketchy.Core.DLL

FyfeSoftware.Sketchy.WinForms
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/OMR%20Mark%20Engine/FyfeSoftware.Sketchy.WinForms.DLL

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Microsoft.CSharp
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll

CustomMarshalers
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/CustomMarshalers/v4.0_4.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll

System.Dynamic
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll

Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.6.1063.1 built by: NETFXREL3STAGE

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll

zxing
Assembly Version: 0.14.0.0
Win32 Version: 0.14.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/OMR%20Mark%20Engine/zxing.DLL

AForge
Assembly Version: 2.2.5.0
Win32 Version: 2.2.5.0

CodeBase: file:///C:/Program%20Files%20(x86)/OMR%20Mark%20Engine/AForge.DLL

AForge.Imaging
Assembly Version: 2.2.5.0
Win32 Version: 2.2.5.0

CodeBase: file:///C:/Program%20Files%20(x86)/OMR%20Mark%20Engine/AForge.Imaging.DLL

AForge.Math
Assembly Version: 2.2.5.0
Win32 Version: 2.2.5.0

CodeBase: file:///C:/Program%20Files%20(x86)/OMR%20Mark%20Engine/AForge.Math.DLL

System.Design
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll

Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

comments

avsrot wrote Jan 12, 2016 at 7:41 PM

I too have the same error.
What a pity :(

jf03cg wrote Jan 12, 2016 at 8:25 PM

Resolution is found here: http://omrmarkengine.codeplex.com/workitem/11

'''
Hi,

The control points must be a sufficient size, and there must be four of them in the shape of a circle. I believe the smallest a control point can be is 0.70 CM (or just over a 1/4 inch) however guide points of 0.75 CM or larger work best.

Cheers
-Justin
'''