Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception while disposing #82

Closed
GoogleCodeExporter opened this issue Jul 28, 2015 · 2 comments
Closed

Exception while disposing #82

GoogleCodeExporter opened this issue Jul 28, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

This happens only outside Visual Studio! It has not happened before version 
6.10, so some recent changes caused this behaviour.

In my application ImageListView is part of my main window. I call 
ImageListView.Dispose() when my main window is about to close (in 
OnFormClosing()). If I don't call Dispose() no exception is thrown and I 
actually don't really need to call it because I'll close my application anyway. 
So consider it an optional fix, I'm bothering you enough already.

System.ArgumentException: Invalid Parameter.
   at System.Drawing.Font.GetHeight(Graphics graphics)
   at System.Drawing.Font.GetHeight()
   at System.Drawing.Font.get_Height()
   at Manina.Windows.Forms.ImageListView.ImageListViewRenderer.MeasureColumnHeaderHeight() in C:\VS Projekte\ImageListView\ImageListViewRenderer.cs:Line 704.
   at Manina.Windows.Forms.ImageListViewLayoutManager.Update(Boolean forceUpdate) in C:\VS Projekte\ImageListView\ImageListViewLayoutManager.cs:Line 305.
   at System.Windows.Forms.Control.WmShowWindow(Message& m)


Original issue reported on code.google.com by [email protected] on 4 Aug 2010 at 5:40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants