| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
8 Articles match "Memory Leak","Sample"
| The Latest from DevelopMentor | MORE | | Simple MVVM Toolkit versus MVVM Light Toolkit Presently MVVM Light requires a manual installation , but the download for Simple MVVM is an installer which gives you the assembly binaries, external libraries, samples and source code. Simple MVVM Toolkit, on the other hand, has Documentation that includes the following topics: Introduction , Features , Prerequisites , Download Contents , Installation , Samples , and a Programming Reference. That is why I have focused a great deal of my energy on building two categories of sample applications that are installed with the Simple MVVM Toolkit. Platforms. Support. Usability. Tony and Zuzana's World - Saturday, April 23, 2011 Simple Mvvm Toolkit Version 2.0: Better and Even Easier to Use Launch SimpleMvvmInstaller.exe and you’ll get the whole shebang: binaries, project and item templates, code snippets, samples and source code, copied to the SimpleMvvmToolkit directory in your Program Files folder. This allows the View to control the lifetime of the ViewModel, avoiding a potential memory leak, but it also results in a lot less code in the locator when you use the mvvmlocator, mvvmlocatornosa (no service agent required) or mvvminjectedlocator (injected service agents) code snippets. Lastly, v2 adds Parts 2 and 3 to the Main sample application. Sweet. Tony and Zuzana's World - Wednesday, April 13, 2011 MVVM: Views and ViewModels cf0 cf3 ///cf4 Sample ViewModel that wraps a Directory.par ??cf0 par ??} -->. ///. /// Sample ViewModel that wraps a Directory. ///. cf0 messageVisualizer.Show(cf7 "About File Explorer Sample"cf0 , cf7 "File Explorer Sample 1.0"cf0 messageVisualizer.Show( "About File Explorer Sample" , "File Explorer Sample 1.0" , MessageButtons.OK); }. }. ///. /// This method is invoked by the message mediator when a DirectoryViewModel is selected. ///. /// <param name="newDirectory"> DirectoryViewModel that is now active. Project Template. Dependencies. Views. Mark's Blog of Random Thoughts - Friday, January 22, 2010 | -
| The Best from DevelopMentor | MORE | - Simple MVVM Toolkit versus MVVM Light Toolkit
Presently MVVM Light requires a manual installation , but the download for Simple MVVM is an installer which gives you the assembly binaries, external libraries, samples and source code. Simple MVVM Toolkit, on the other hand, has Documentation that includes the following topics: Introduction , Features , Prerequisites , Download Contents , Installation , Samples , and a Programming Reference. That is why I have focused a great deal of my energy on building two categories of sample applications that are installed with the Simple MVVM Toolkit. Platforms. Support. Usability. Tony and Zuzana's World - Saturday, April 23, 2011 - MVVM: Views and ViewModels
cf0 cf3 ///cf4 Sample ViewModel that wraps a Directory.par ??cf0 par ??} -->. ///. /// Sample ViewModel that wraps a Directory. ///. cf0 messageVisualizer.Show(cf7 "About File Explorer Sample"cf0 , cf7 "File Explorer Sample 1.0"cf0 messageVisualizer.Show( "About File Explorer Sample" , "File Explorer Sample 1.0" , MessageButtons.OK); }. }. ///. /// This method is invoked by the message mediator when a DirectoryViewModel is selected. ///. /// <param name="newDirectory"> DirectoryViewModel that is now active. Project Template. Dependencies. Views. - Simple Mvvm Toolkit Version 2.0: Better and Even Easier to Use
Launch SimpleMvvmInstaller.exe and you’ll get the whole shebang: binaries, project and item templates, code snippets, samples and source code, copied to the SimpleMvvmToolkit directory in your Program Files folder. This allows the View to control the lifetime of the ViewModel, avoiding a potential memory leak, but it also results in a lot less code in the locator when you use the mvvmlocator, mvvmlocatornosa (no service agent required) or mvvminjectedlocator (injected service agents) code snippets. Lastly, v2 adds Parts 2 and 3 to the Main sample application. Sweet. Tony and Zuzana's World - Wednesday, April 13, 2011 - SOS: finding the method bound to an EventHandler with WinDbg.
I was preparing a sample memory leak application for an Advanced C# class at Microsoft this past week and debugging through it with SOS.DLL ("Son of Strike"). My prepared application was an ASP.NET application that would leak memory by holding references to the page objects after they had completed their work. But as I said, this was a sample. did this by having the page hook up an event handler to a global event and then never remove the handler. run the web page a few times, noted my working set going up and never coming back down. load sos 0:000> !DumpHeap - Utilizing TAPI from an ASP.NET application
Don't hook events inside your ASP.NET page-derived classes - that will keep the pages alive and cause memory leaks. I've gotten several email requests about using ATAPI from ASP.NET -- people have had trouble getting it to function properly so I figured I'd post an example of how it works. First, I'd recommend using ATAPI and not ITAPI3 - only because the latter pulls in COM objects which always makes things much more complex. The key thing to remember is where to hook up your events. created a simple dialer in ASP.NET 2.0 through the following steps: Create an ASP.NET website. - MVVM Helpers 1: Views and ViewModels
cf0 cf3 ///cf4 Sample ViewModel that wraps a Directory.par ??cf0 par ??} -->. ///. /// Sample ViewModel that wraps a Directory. ///. cf0 messageVisualizer.Show(cf7 "About File Explorer Sample"cf0 , cf7 "File Explorer Sample 1.0"cf0 messageVisualizer.Show( "About File Explorer Sample" , "File Explorer Sample 1.0" , MessageButtons.OK); }. }. ///. /// This method is invoked by the message mediator when a DirectoryViewModel is selected. ///. /// <param name="newDirectory"> DirectoryViewModel that is now active. Project Template. Dependencies. Views. - SOS: finding the method bound to an EventHandler with WinDbg.
I was preparing a sample memory leak application for an Advanced C# class at Microsoft this past week and debugging through it with SOS.DLL ("Son of Strike"). My prepared application was an ASP.NET application that would leak memory by holding references to the page objects after they had completed their work. But as I said, this was a sample. did this by having the page hook up an event handler to a global event and then never remove the handler. run the web page a few times, noted my working set going up and never coming back down. load sos 0:000> !DumpHeap %>
| | |