void Nish(char* szBlog);

Nish’s thoughts on MFC, C++/CLI and .NET

void Nish(char* szBlog); header image 4

Entries from February 2009

Simulate a window minimize / memory release in your .NET apps

February 26th, 2009 · 3 Comments

Once in a while you have people complaining in the forums that their .NET applications are not releasing memory but that if they minimize the app and restore it, then the memory usage goes down. Why this happens is explained in this Microsoft KB article : The working set of an application is trimmed when [...]

[Read more →]

Tags: C#/.NET · CLR/.NET BCL

Using reflection to invoke a constructor that takes a ref parameter

February 25th, 2009 · 5 Comments

Recently in the MSDN Forums, someone wanted to know how he could use reflection to invoke a constructor that took a ref parameter. Personally I can’t think of any reason why a constructor would have a ref parameter, and try as I did I could not dig up that thread (neither Google nor MSDN forum [...]

[Read more →]

Tags: C#/.NET

Static initialization goof-up

February 21st, 2009 · 2 Comments

I am writing this blog entry as a reminder to myself to be careful when using static fields or properties, and I wanted to document some silliness on my part for posterity. Recently I was working on some code where I wanted to keep track of derived class instances by storing them in a static [...]

[Read more →]

Tags: C#/.NET · CLR/.NET BCL