Monday, September 13, 2004

Memory use in .NET

I was tinckering around with Performance Monitoring in .NET.
Here is something I found out
"Task manager in Windows shows the memory requested by the Application and not the memory used by the application"
From my side
"If a application has requested and has been allocated more memory (remember it may or may not be using it) then you need not get worried about it and say Oh!! my app using so much memory and try and optimize it because when OS needs the unused memory , ( when OS is low on available memory and some other application is requesting for it ) it will reclaim it automatically."
As of now its consistent with the results I am getting.
For amusement, create a simple Win App in Dot Net, run it and chk the memory usage in task manager.
Now maximize and minimize it and again chk the memory used by it.
For answer go to
.Net Urban Legend

The Curious Incident Of Dog In the Night

Some books in which a kid is narrating a story....

  • Catcher In the Rye
  • To Kill A Mocking Bird
  • The Curious Incident Of Dog In the Night
  • Life Of Pie

I get full kicked whenever I am reading such stuff. Its so nice to know that there are like minded people who had the same kind of feelings as kid, as you had. For example in 'The Curious Incident of Dog In the Night' this Boone chap dislikes strangers just like I do, though I act as if it does not matter, but I do. I have this uneasy feeling, may be some where I am trying to judge that person which is a bad habit but I do it. It takes a lot of time for me to reach a certain comfort level. There was only one single instance in my life when I approached a person. It never worked out the way I wanted it to.I don't know whether it was worth it or not, sometimes I am depressed about it.But as Boone says in the Dog book 'In life there are no straight answers'.

An Ideal Boy agrees, and moves on.

Saturday, September 04, 2004

Russian school hostage crisis

I and the public know.
What all schoolchildren learn.
Those to whom evil is done.
Do evil in return.
-W.H. Auden, poet (1907-1973)

No matter what their cause is, those who hide behind
children to save there lives, those who kill children
are not human beings.
Show no mercy towards them.

If you have a cause and you want to fight for it then
it should be man to man, face to face.

Is this what Kuran teaches Muslisms?
Do these people have faith in any religion?
I doubt....


Friday, September 03, 2004

Missing Class

Namespace: System.Reflection

Remarks: Represents a missing Object. This class cannot be inherited. Missing is used to invoke a method with a default argument. Only one instance of Missing ever exists.

Now when will you use this? When you have to pass a variable by ref set it to Missing.Value this is comparable to passing null to the function. Necessary because the C# null cannot be passed by reference.