When a Winform under test has any of the windows
controls from the "Netvantage" suite of controls from
http://www.infragistics.com on it, it throws a
Win32Exception: "The requested resource is in use"
when the desktop is Disposed.
This occurs on the line:
testDesktop.Dispose();
in
NUnitFormTest.cs
While I don't know what resources are specifically in
use, I know that the Infragistics controls open a hidden
windows called something like 'Thememanager' which
apparently help manage the Themed look and feel of its
controls.
I don't expect anyone to solve this for me, but any hints
about how to troubleshoot the Win32Exception would be
great.
thanks,
Richard A. Lowe
chadich@yahoo.com
http://blogs.geekdojo.com/Richard
Logged In: NO
I've observed the same behavior trying to test forms with
Infragistics controls. Following along in the debugger, it
seems that the call to Win32.SetThreadDesktop made from the
Desktop constructor fails, but because the code ignores the
return value, it doesn't know the difference.