Win7 WDK Compiler PCH issues

I just recently started hitting issues with pre-compiled headers in the Win7 WDK (running on Win7x64) that match pretty squarely with the symptom noted in:

http://support.microsoft.com/kb/976656

and thoroughly flogged in this blog posting from the VC team:

http://blogs.msdn.com/b/vcblog/archive/2009/11/12/visual-c-precompiled-header-errors-on-windows-7.aspx

Basically the way PCH data is serialized & then re-loaded relies on the address space being pretty static. ASLR renders that assumption unreliable and the result is that “fatal error C1859” occurs.

But the QFE/Hotfix to update the compiler appears to be only for Visual Studio 10 and not the compiler included in the WDK (which is seemingly an earlier version of VC (15.00.30729.207)

Is there a suggested approach to avoiding this issue other than turning off use of PCH?

Is there a patch to the WDK to get the later compiler which addresses the issue (the VS10 SP1 updated version)?

FWIW (and quite scarily) the ‘reboot the machine’ work-round seemed to work temporarily.

Just asking …

Thanks,

Dave Cattley

This is a great heads-up to the community… and another good reason for why using the *released* version of the VC compiler is a good thing: You can get updates for it.

Thanks for posting, Dave. Hope you find a fix… but (between you and me) I would venture that there’s no chance of that happening. That version of the compiler is done. Sigh.

P