Visual Studio 2010 - Code Snippets |
- Visual Studio 2010 - Code Snippets
- jQuery Learning
- How to share session between two web sites hosted on two different web server without web farm | it.rss24h.com
- Ajax Links - Berwick Heights Software
- re: November Conferences
- re: WPF 4 (VS 2010 and .NET 4.0 Series)
- Marius Bancila’s Blog » Visual Studio 2010 Add Reference Dialog Improvements
- The improvement of VS 2010 and .NET 4.0 code Intellisense | Microsoft Study Bible
- Model *View* Controller « Tell don't ask
- re: URL Routing with ASP.NET 4 Web Forms (VS 2010 and .NET 4.0 Series)
- Silverlight Developers Guide to PDC09
- MVVM Study Part 4: Naked WPF
- Silverlight Cream for November 13, 2009 -- #731
- PDC09: Pre-Conference Workshop on Silverlight 3
- Peter Blum’s new blog and his cool new data source controls
- Silverlight Tip: Enumerating embedded resources
- Databinding 3.0
- Visual C++ Precompiled Header Errors on Windows 7
- Our little team is growing - Welcome to Jon Galloway and Pete Brown
Visual Studio 2010 - Code Snippets Posted: 13 Nov 2009 12:05 PM PST Visual Studio code snippets are pretty handy. VS 2010 introduces few more that might improve your coding Read More......(read more) |
Posted: 13 Nov 2009 04:34 AM PST Avind in vedere ca Microsoft in Visual Studio 2010 integreaza jQuery, ar fi bine sa cititi despre acesta Read More......(read more) |
Posted: 12 Nov 2009 11:48 PM PST Pingback from How to share session between two web sites hosted on two different web server without web farm | it.rss24h.com Read More......(read more) |
Ajax Links - Berwick Heights Software Posted: 12 Nov 2009 05:35 PM PST Pingback from Ajax Links - Berwick Heights Software Read More......(read more) |
Posted: 12 Nov 2009 03:09 PM PST Thanks Read More......(read more) |
re: WPF 4 (VS 2010 and .NET 4.0 Series) Posted: 12 Nov 2009 02:35 PM PST Great stuff, thanks. Read More......(read more) |
Marius Bancila’s Blog » Visual Studio 2010 Add Reference Dialog Improvements Posted: 12 Nov 2009 05:17 AM PST Pingback from Marius Bancila’s Blog » Visual Studio 2010 Add Reference Dialog Improvements Read More......(read more) |
The improvement of VS 2010 and .NET 4.0 code Intellisense | Microsoft Study Bible Posted: 12 Nov 2009 01:45 AM PST Pingback from The improvement of VS 2010 and .NET 4.0 code Intellisense | Microsoft Study Bible Read More......(read more) |
Model *View* Controller « Tell don't ask Posted: 12 Nov 2009 01:32 AM PST Pingback from Model *View* Controller « Tell don't ask Read More......(read more) |
re: URL Routing with ASP.NET 4 Web Forms (VS 2010 and .NET 4.0 Series) Posted: 11 Nov 2009 02:51 PM PST ps: links did not show correctly above: " www.mysite.com/.../456" or " www.mysite.com/Books.aspx Read More......(read more) |
Silverlight Developers Guide to PDC09 Posted: 13 Nov 2009 11:41 AM PST The 2009 edition of the Microsoft Professional Developers Conference, affectionately known as PDC09, is next week. If you share my interest with Silverlight and related technologies, the list below should help provide some guidance to getting the most...( read more )...(read more) |
Posted: 13 Nov 2009 07:47 AM PST I've blogged previously about the MVVM pattern, but so far I have managed to escape without showing any code ;) Before diving in deeper, I would like to stop and show what it takes to do a very simple implementation of this pattern on top of naked...( read more )...(read more) |
Silverlight Cream for November 13, 2009 -- #731 Posted: 13 Nov 2009 07:32 AM PST In this Issue: Alex Golesh , Rick Barraza , AfricanGeek , Laurent Duveau , Scott Marlowe , Mason Brown , Rishi , Radenko Zec , Alex van Beek , and Anoop . Shoutout: Here's the announcement from the Bing Community site: Bing Maps Silverlight Control 1...( read more )...(read more) |
PDC09: Pre-Conference Workshop on Silverlight 3 Posted: 13 Nov 2009 05:06 AM PST It's nearly "PDC time" and the t-shirts just came in for the Pre-Conference Workshop that I'm sitting in on for Monday; If I can persuade them to do it, Rich and Ian will be modelling this year's geek-laden polo shirt ( note the XAML ); and Tim...( read more )...(read more) |
Peter Blum’s new blog and his cool new data source controls Posted: 12 Nov 2009 05:19 PM PST Peter Blum has been well known is the ASP.NET world for many years for writing a whole suite of powerful controls, which you can read all about on his site . One thing that was missing on Peter's resume is that he never had a blog. Well he started one earlier this month, and is making up for the lost time in a big way, with already 11 posts! And we're not talking about small posts that just point to other people's stuff (unlike this post I suppose!), but real with useful meaty content. Make sure you check out his blog at http://weblogs.asp.net/peterblum/ . I hope he keeps the good stuff coming! In particular, Peter has been working hard on some interesting data source controls that work with Visual Studio 2010. ...(read more) |
Silverlight Tip: Enumerating embedded resources Posted: 12 Nov 2009 06:28 PM PST Today I've got a "Call for Help" from one of Silverlight MVPs – Bill Reiss . The mail said: "I would like to enumerate all items that were marked as Content or Resource in the main XAP file. If I can't do both I'd settle for one. Any sample code for this...( read more )...(read more) |
Posted: 13 Nov 2009 02:37 AM PST There was a post on our internal discussion group recently where a customer pointed out one of the weaknesses of 2 way data binding not working within user controls. Consider the following page: < asp:ObjectDataSource runat= "server" ID= "personSource" SelectMethod= "GetPersons" UpdateMethod= "Update" DataObjectTypeName= "ExtendedDatabinding.Person" TypeName= "ExtendedDatabinding.PersonRepository" > </ asp:ObjectDataSource > < asp:FormView runat= "server"...(read more) |
Visual C++ Precompiled Header Errors on Windows 7 Posted: 12 Nov 2009 02:08 PM PST Several customers have encountered the following error while using the Visual C++ compiler on Windows 7:
fatal error C1859: 'stdafx.pch' unexpected precompiled header error, simply rerunning the compiler might fix this problem
This error manifests under the following conditions: · The Visual C++ compiler is invoked on Windows 7. · Precompiled header (PCH) files are enabled. · /analyze is enabled (this is not a necessary condition, but it increases the probability of encountering this behavior).
Despite the error message's suggestion, "simply rerunning the compiler" probably won't help the situation. Indeed, the underlying cause of this error is far from "simple" as it stems from an interaction between our venerable precompiled header architecture and the new security enhancements in Windows 7.
Visual C++ Precompiled Headers and ASLR Precompiled header files store the "state" of a compilation up to a certain point, and that state information can be reused in subsequent compiler invocations to significantly increase build throughput. For the past 15 years, our compiler has persisted precompiled headers to disk and reloaded them directly into virtual memory with 99.999% reliability and considerable performance gains. The tradeoff, however, was a degree of fragility in our architecture.
Since the PCH file itself contains internal pointers, it must be loaded at the exact same address in virtual memory where it was created. The pointers will be inaccurate if the PCH is loaded at a different address in subsequent compilations. To complicate matters, the PCH also contains polymorphic objects, and each polymorphic object contains its own virtual function table pointer (VFTP). These VFTPs point to virtual function tables stored in modules. Therefore, if a polymorphic object in the PCH depends on a virtual function table in a particular module, that module must be loaded at the exact same virtual address as when the PCH was created. If the module is loaded at a different address in subsequent compilations, the VFTP's in the PCH will be inaccurate.
That's a long-winded way of saying "both the PCH file and the modules it depends upon must not move between compilations!" The Visual C++ compiler will verify that both of these conditions are met before building, otherwise it will fail immediately with the above error. The latter condition bit us on Windows 7, which introduced more aggressive algorithms for Address Space Layout Randomization (ASLR). ASLR mitigates certain malware exploits by randomly relocating modules within a process. To circumvent ASLR randomization in Vista, the compiler modules were previously built with /dynamicbase:no back in Visual Studio 2008. This was insufficient in Win7 as randomization became more aggressive.
Our first attempt to fix the problem involved setting the preferred base address of each compiler module to a location that we considered "safe" (i.e. would decrease the odds of modules colliding sufficiently). Unfortunately, cascading rebases continuously thwarted our efforts as one module would move into the preferred address space of another, and the domino effect would continue until a module that the PCH used was rebased. Failures like this were difficult to diagnose and often involved subtle factors, such as process creation order (i.e. devenv.exe loads a module that cl.exe uses, etc) and the Native DLL Loader. We were essentially locked in a losing battle with the Butterfly effect.
Our Solution The majority of alternative solutions required either a substantial amount of work or an unacceptable performance hit. We finally decided to implement our own dispatch mechanism within the PCH data structures that eliminated the virtual function tables altogether. By "devirtualizing" the PCH data structures, we successfully eliminated the second criterion: compiler modules can now move about the process without breaking the precompiled header file.
This fix will be available in the final release of Visual Studio 2010, and a hotfix for Visual Studio 2008 will be released shortly. If you are encountering this problem in the interim, please try the following workarounds: · Disable /analyze (if enabled). · Invoke a clean build. · Reboot your machine. · Disable PCH files.
Thanks, Mark Roberts Visual C++ Compiler Team |
Our little team is growing - Welcome to Jon Galloway and Pete Brown Posted: 12 Nov 2009 01:54 PM PST Just about two years ago I joined Microsoft . I'm fortunate to work in a home office with a great team that I now lead . We work for the group at Microsoft that runs MSDN , TechNet , ASP.NET , Silverlight.NET , WindowsClient.NET , basically all the online education stuff. The giant group is called STO (Server & Tools Online) and our little group is " stoninja ." That's our internal mailing alias. We create content for all of the sites above but we're also active members of the community. We listen and drive feedback back into the product group. We're not part of the product evangelism group (DPE - Developer Platform Evangelism), but rather we focus primarily on online content creation. I like to think that we're...(read more) |
You are subscribed to email updates from "microsoft" via reza in Google Reader To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
No comments:
Post a Comment