MSDN Archive Home
Help and FAQs
Windows® API Code Pack for Microsoft® .NET Framework
All Resource Updates
Create New Discussion
Opening an ExplorerView drags entire application performance forever
Mar 29 at 7:32 PM
I posted this in the WPF MSDN forums but then decided this was the better place for it. To anyone following both forums - Sorry for the double post, and I promise to close both issues should I get a response in either.
1. I open my application. I move it around on the screen. Very responsive; no delays.
2. Open a child window containing an ExplorerBrowser.
3. Close the child window.
4. Application now is 'chunky' and cannot be moved around easily. ComboBox drop downs are slow. In general, the entire application sucks now and is unusable.
5. Comment out the ExplorerBrowser and repeat all steps. Application stays responsive even after opening the child window.
The application also consumes 30+MB of extra memory after opening this child window. I tried calling Dispose() on the ExplorerBrowser and although that line of code is successful, an error is thrown a split second later when the window being closed apparently tries the same thing.
Any ideas at all? I am stumped. It's a .Net 4.0 application using WPF. Environment is Win7 64bit.
Mar 29 at 8:22 PM
Well, I'm thinking this is a bug. Here's what I have done which appears to have fixed it. I'll wait a day or two for someone to come along and tell me I'm an idiot and I'm doing it wrong =). After that, I'll write up an issue in the issue tracker.
- First off, the dtCLRUpdater timer is never stopped! I added "dtCLRUpdate.Stop()" to method "protected virtual void Dispose(bool disposed)".
- Next, the item is never disposed even when the containing window is closed. I added a Dispose() line to my own code.
- (Note that I could not have done line 2 without fixing line 1, and in fact I had already tried this in the OP).
- Third, the timer is set at 100ms which seems a bit extreme. I changed this to 1000ms instead. Obviously this isn't a required change.
Sign in to post message or set email notifications
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.