Jump to content

Strange C#.NET WinForms error

WamWooWam

So, I have now implemented Spell Check into TomText! YAYYYYYYY!

I used this library called NHunspell and it works!

peAyUaH.png

But every time the app is minimized it throws this up

EVjLa6f.png

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************System.ArgumentException: Parameter is not valid.   at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)   at NHunspellExtender.NHunspellTextBoxExtender.CustomPaintTextBox.TextBoxBase_ClientSizeChanged(Object sender, EventArgs e)   at System.Windows.Forms.Control.OnClientSizeChanged(EventArgs e)   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)   at System.Windows.Forms.Control.UpdateBounds()   at System.Windows.Forms.Control.WndProc(Message& m)   at System.Windows.Forms.RichTextBox.WndProc(Message& m)   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)************** Loaded Assemblies **************mscorlib    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)    CodeBase: file:///E:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll----------------------------------------Microsoft.VisualStudio.HostingProcess.Utilities    Assembly Version: 12.0.0.0    Win32 Version: 12.0.21005.1    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.HostingProcess.Utilities/12.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.HostingProcess.Utilities.dll----------------------------------------System.Windows.Forms    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll----------------------------------------System    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll----------------------------------------System.Drawing    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll----------------------------------------Microsoft.VisualStudio.HostingProcess.Utilities.Sync    Assembly Version: 12.0.0.0    Win32 Version: 12.0.21005.1    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.HostingProcess.Utilities.Sync/12.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll----------------------------------------Microsoft.VisualStudio.Debugger.Runtime    Assembly Version: 12.0.0.0    Win32 Version: 12.0.21005.1    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/Microsoft.VisualStudio.Debugger.Runtime/12.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Debugger.Runtime.dll----------------------------------------vshost-clr2    Assembly Version: 12.0.0.0    Win32 Version: 12.0.30723.0    CodeBase: file:///E:/Users/Thomas/Desktop/TomText/Alpha/TomText/bin/Debug/TomText.vshost.exe----------------------------------------System.Core    Assembly Version: 3.5.0.0    Win32 Version: 3.5.30729.5420 built by: Win7SP1    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll----------------------------------------System.Web.Services    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll----------------------------------------System.Xml.Linq    Assembly Version: 3.5.0.0    Win32 Version: 3.5.30729.5420 built by: Win7SP1    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll----------------------------------------System.Data.DataSetExtensions    Assembly Version: 3.5.0.0    Win32 Version: 3.5.30729.5420 built by: Win7SP1    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/System.Data.DataSetExtensions/3.5.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll----------------------------------------System.Data    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)    CodeBase: file:///E:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll----------------------------------------System.Deployment    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.5488 (Win7SP1GDR.050727-5400)    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll----------------------------------------System.Xml    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll----------------------------------------TomText    Assembly Version: 1.0.3.0    Win32 Version: 1.0.3.0    CodeBase: file:///E:/Users/Thomas/Desktop/TomText/Alpha/TomText/bin/Debug/TomText.EXE----------------------------------------System.Configuration    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll----------------------------------------NHunspellExtender    Assembly Version: 2.1.0.0    Win32 Version: 2.1.0.0    CodeBase: file:///E:/Users/Thomas/Desktop/TomText/Alpha/TomText/bin/Debug/NHunspellExtender.DLL----------------------------------------Microsoft.VisualBasic    Assembly Version: 8.0.0.0    Win32 Version: 8.0.50727.5483 (Win7SP1GDR.050727-5400)    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll----------------------------------------NHunspell    Assembly Version: 0.9.2.0    Win32 Version: 0.9.2.0    CodeBase: file:///E:/Users/Thomas/Desktop/TomText/Alpha/TomText/bin/Debug/NHunspell.DLL----------------------------------------Accessibility    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll----------------------------------------uv9lrse2    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)    CodeBase: file:///E:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll----------------------------------------************** JIT Debugging **************To enable just-in-time (JIT) debugging, the .config file for thisapplication or computer (machine.config) must have thejitDebugging value set in the system.windows.forms section.The application must also be compiled with debuggingenabled.For example:<configuration>    <system.windows.forms jitDebugging="true" /></configuration>When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather than be handled by this dialog box. 

Any ideas?

Failed to load signature. Error 404 - Witty comment not found

Link to comment
Share on other sites

Link to post
Share on other sites

Hi

I would think that it's the width or height that's incorrect like its minus values.

Thanks

Link to comment
Share on other sites

Link to post
Share on other sites

How about that debugger, though.

Which one?

Failed to load signature. Error 404 - Witty comment not found

Link to comment
Share on other sites

Link to post
Share on other sites

Exactly.

 

It is running under the Visual Studio debugger but for some reason it isn't doing anything.

Failed to load signature. Error 404 - Witty comment not found

Link to comment
Share on other sites

Link to post
Share on other sites

It is running under the Visual Studio debugger but for some reason it isn't doing anything.

 

That's not a lot to go on.

Link to comment
Share on other sites

Link to post
Share on other sites

That's not a lot to go on.

 

Have you looked in the spoiler? It's kinda easy to miss.

Failed to load signature. Error 404 - Witty comment not found

Link to comment
Share on other sites

Link to post
Share on other sites

Have you looked in the spoiler? It's kinda easy to miss.

 

I don't see what that an error dump has to do with a debugger.

Link to comment
Share on other sites

Link to post
Share on other sites

It's likely crashing because of code you wrote or a bug in the library you're using. If it's because of code you wrote, then you need to make sure you are using the library correctly and you'll also want to debug any code that runs due to a minimize. If it's because of a bug in the library, you can either try and fix it yourself (since it's an Open Source library) or contact their support if they have it.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×