Showing archive results for 2012

Jun 13, 2012
Post comments count0
Post likes count1

Why don't all of my folder customizations roam with my profile?

Raymond Chen

A customer reported some inconsistency in how folder customizations are handled by roaming profiles. Why doesn't the customization roam? Well, if you think about it, it makes sense that the setting for doesn't roam because doesn't roam either! The on Server1 is not the same directory as the on Server2. Let's change Step 2 slightly:...

Tips/Support
Jun 12, 2012
Post comments count0
Post likes count0

Microsoft Dynamics in a soda can, sort of

Raymond Chen

It is not uncommon for a product team to produce some custom soda cans (really, carbonated water) for distribution at Microsoft cafeterias. Last year, the Microsoft Dynamics™ CRM 2011 team put some custom cans of sparkling water in the coolers extoling the virtues of their new product. It took the form of a side-by-side feature comparison. ...

Non-Computer
Jun 11, 2012
Post comments count0
Post likes count0

Fabio coming to Redmond. Also: Whey Protein

Raymond Chen

Mark your calendars: Fabio Lanzoni, better known to the world as simply Fabio, will be at the Redmond Whole Foods Market on June 21 to promote his whey protein product. (Now made with real Fabio!) And unlike Martha, he will let you take a picture of him. By the way, ladies, he's available!

Non-Computer
Jun 11, 2012
Post comments count0
Post likes count1

Why do you have to wait for Windows Error Reporting to check for solutions before it restarts the application?

Raymond Chen

Leo Davidson wonders why you have to wait for Windows Error Reporting to check for solutions before it restarts the application. Why not do the two in parallel? Well, for one thing, when the application restarts, it might freak out if it sees a dead copy of itself. I know for sure that I would freak out if I woke up one morning and saw my own dea...

Other
Jun 8, 2012
Post comments count0
Post likes count1

How can I determine the underlying cause of a EXCEPTION_IN_PAGE_ERROR exception?

Raymond Chen

A customer was using memory-mapped files and installed an exception handler to log in-page errors in the memory-mapped file region. They wanted to know how they could obtain the real disk error that resulted in the memory manager not being able to page-in the requested data. Finding the answer isn't that hard. A quick search for reveals that ...

Code
Jun 7, 2012
Post comments count0
Post likes count1

Eventually the window manager simply says that enough is enough

Raymond Chen

Many window manager operations are recursive, and eventually the window manager will simply say that enough is enough when the recursion goes too deep. We've seen this when you nest windows more than 50 levels deep or nest menus more than 25 levels deep, for example. (Note also that these limits may change in the future, so don't rely on being a...

Code
Jun 6, 2012
Post comments count0
Post likes count1

Don't be helpless: What might be the reason for a "Path not found" error?

Raymond Chen

Internally at Microsoft, we have a programmer's tool which I will call Program Q. On the peer-to-peer mailing list for Program Q, somebody asked the following question: When I try to do a , instead of opening an editor window where I can modify the template, I get the following error: Can you help resolve this error? Okay, ther...

Other
Jun 5, 2012
Post comments count0
Post likes count1

Microspeak: Turds

Raymond Chen

In Microspeak, a turd is a graphics glitch which results in old pixels appearing on the screen when they shouldn't. Perhaps they are not being erased properly, or instead of being erased, they move to an unwanted location. The source of the problem could be failing to mark a region for redrawing after something changed, or it could be that the draw...

OtherMicrospeak
Jun 4, 2012
Post comments count0
Post likes count1

Why does PrintWindow hate CS_PARENTDC? Because EVERYBODY hates CS_PARENTDC!

Raymond Chen

Commenter kero wants to know why the function hates . (And , and .) Because everybody hates ! (And , and .) We saw earlier that these class styles violate widely-held assumptions about how drawing works. I mean, who would have thought that asking for two device contexts would give you the same one back twice? Or that changes to one device cont...

Code
Jun 1, 2012
Post comments count0
Post likes count0

The time I watched a total lunar eclipse from the top of a mountain

Raymond Chen

One of my colleagues loves doing outdoorsy things, and he also loves space and astronomy. Many years ago, he invited a small number of us on an outing that combined both of his interests: A hike up a mountain to view the total lunar eclipse. Since an eclipse does not wait until you're ready, it's kind of important to stay on schedule or you'll end...

Non-Computer