Showing results for August 2010 - Page 3 of 3 - The Old New Thing

Aug 10, 2010
0
0

Everybody thinks about CLR objects the wrong way (well not everybody)

Raymond Chen
Raymond Chen

Many people responded to Everybody thinks about garbage collection the wrong way by proposing variations on auto-disposal based on scope: "Any local variable that is IDisposable should dispose itself when it goes out of scope." "You should be able to attach an attribute to a class that says the destructor should be called imme...

Other
Aug 10, 2010
0
0

When does an object become available for garbage collection?

Raymond Chen
Raymond Chen

As we saw last time, garbage collection is a method for simulating an infinite amount of memory in a finite amount of memory. This simulation is performed by reclaiming memory once the environment can determine that the program wouldn't notice that the memory was reclaimed. There are a variety of mechanism for determining this. In a basic tracing...

Other
Aug 9, 2010
0
0

Everybody thinks about garbage collection the wrong way

Raymond Chen
Raymond Chen

Welcome to CLR Week 2010. This year, CLR Week is going to be more philosophical than usual. When you ask somebody what garbage collection is, the answer you get is probably going to be something along the lines of "Garbage collection is when the operating environment automatically reclaims memory that is no longer being used by the program. It doe...

Other
Aug 6, 2010
0
0

Some known folders cannot be moved, but others can, and you'll just have to accept that

Raymond Chen
Raymond Chen

Locations in the shell known folder system can be marked as , which makes them immovable. Conversely, if a file system folder is not immovable, then it can be moved. This dichotomy appears simple and unworthy of discussion, except that customers sometimes have trouble incorporating this concept into their world view. I have some code that calls...

Code
Aug 5, 2010
0
0

Raymond misreads flyers, episode 2: It Takes You

Raymond Chen
Raymond Chen

As part of a new phase in Microsoft's continuing recycling efforts, the recycling program got a new motto. The new motto was not announced with any fanfare. Rather, any recycling-related announcement had the new motto at the top as part of the letterhead. The new motto: It Takes You. I had trouble parsing this at first. To me, it sounded like th...

Non-Computer
Aug 4, 2010
0
0

How many failure reports does a bug have to get before Windows will fix it?

Raymond Chen
Raymond Chen

When a program crashes or hangs, you are given the opportunity to send an error report to Microsoft. This information is collected by the Windows Error Reporting team for analysis. Occasionally, somebody will ask, "How many failures need to be recorded before the bug is fixed? A thousand? Ten thousand? Ten million?" Each team at Microsoft takes ve...

Other
Aug 3, 2010
0
0

Don't forget to replace your placeholder bitmaps with real bitmaps

Raymond Chen
Raymond Chen

The story We Burned the Poop reminded me of an embarrassing story a colleague of mine related from earlier in his programming career. During the development of the product he was working on, the programmers needed an image for a comparatively rarely-used piece of the user interface. Since programmers aren't graphic designers, they inserted a plac...

History
Aug 2, 2010
0
0

A brief conversation while preparing to hike along the Pacific coast

Raymond Chen
Raymond Chen

Many years ago, one of my colleagues (who happens to be an avid outdoorsy person with a dry sense of humor) assembled a small group of people to take a long weekend hike along the Capa Alava Trail and then north along the Pacific coast. As we gathered in the parking lot midday Friday with our backpacking gear, another of our colleagues (whom I wi...

Non-Computer
Aug 2, 2010
0
0

Did I know where the Novell short file name behavior came from?

Raymond Chen
Raymond Chen

Commenter Yuhong Bao asks, "Do you know that the Novell behavior described in "Not all short filenames contain a tilde" came from HPFS?" Yes, but it was not relevant to the discussion so I didn't bother mentioning it. Going into more detail on the history of the Novell "long namespace" would just encourage people to conclude, "This problem affect...

Other