Monthly Archives: September 2013

Windows – disabling BSTR cache

When checking memory usage it might need to disable BSTR cache to avoid misleading information. Add the following environmental variable to disable BSTR cache. Advertisements

Posted in Performance, Programming | Leave a comment

Performance – Windows application heap usage

The following script will show how to profile the heap memory usage of Windows application with Windows Performance Toolkits

Posted in Performance, Programming | Leave a comment

C# WPF – INotifyPropertyChanged vs DependencyObject

In WPF for binding model data to UI you can choose DependencyObject or INotifyPropertyChanged with POCO. I normally selected INotifyPropertyChanged with POCO because of code readability and easy to understand. Now I have found a useful article about this topic. … Continue reading

Posted in .NET, Programming | Leave a comment

C# WCF – communication tracing

In order to diagnostic WCF communication, you can log all WCF activities by using tracing mechanism in .NET application. You can add the following section in your [app].config file. After you collected the all trace message you can use a … Continue reading

Posted in .NET, Programming | Leave a comment

C# WPF – mouse over animation with opacity

Resource XML. Button XML.

Posted in .NET, Programming | Leave a comment

C# WPF – customizing start up fuction in WPF

When you create a WPF application with visual studio, you will always find app.xaml and app.xaml.cs file. In app.xaml file, you can find the StartupUri attribute in Application tag. The StartupUri will indicate where the application starts. However sometimes you … Continue reading

Posted in .NET, Programming | Leave a comment