Hello Giedrius,
G> I think this is because
G> System.Windows.Forms.Application.AddMessageFilter(...) holds a
G> reference to your form. You should put somewhere RemoveMessageFilter
Thanks for the reply! But the problem appeared not related to custom message
loop. Actually, we've discovered one more bug in Windows Forms. Briefly,
ListView.Dispose() doesn't unhook all event handlers from imagelists, which
are attached to the listview. So these imagelists do keep references to forms
containing such listsviews. Here is detailed description:
http://blogs.jetbrains.com/yole/archives/000037.html.
--
Best regards,
Vyacheslav Lukianov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"