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

ToolTip issue in PropertyEditor #37

Closed
vorptronica opened this issue Apr 9, 2015 · 1 comment
Closed

ToolTip issue in PropertyEditor #37

vorptronica opened this issue Apr 9, 2015 · 1 comment

Comments

@vorptronica
Copy link

I've also posted this in the Google Group but we suspect this may be a bug in ATF so I'm posting here as well.

I'm having an issue customizing my variant of the DomPropertyEditor example to use ToolTips instead of "DisplayDescriptions" which appears in the status bar.
Basically, all I've done is create a subclass of PropertyEditor and then in the Configure method, my first call is:

propertyGrid = new PropertyGrid(PropertyGridMode.DisplayToolTips, new PropertyGridView());

If I change "DisplayToolTips" to "DisplayDescriptions" everything is great, and I see descriptions fine.
But in the form above, clicking on a property name crashes the app with the error I've copied below.
Any ideas on why some cleanup would crash it? The stack trace isn't very useful. I'm a bit stumped.
Thanks!
-Len

Crash error follows:

Managed Debugging Assistant 'RaceOnRCWCleanup' has detected a problem in 'C:\tools\TestApp\bin\Debug\TestApp.vshost.exe'.
Additional Information: An attempt has been made to free an RCW that is in use. The RCW is in use on the active thread or another thread. Attempting to free an in-use RCW can cause corruption or data loss.

@Ron2 Ron2 closed this as completed in 8b0deab Apr 14, 2015
@Ron2
Copy link
Member

Ron2 commented Apr 14, 2015

Thanks, Len, for the good bug report. I think this was a case of "bit rot", where this code path wasn't exercised any more in a sample app. I made the Circuit Editor sample app use this PropertyGridMode.DisplayToolTips enum now.

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

No branches or pull requests

2 participants