Finding Memory Leaks Using the CRT Library Memory leaks, defined as the failure to correctly deallocate memory that was previously allocated, are among the most subtle and hard-to-detect bugs in C/C++ applications. A small memory leak might not be noticed at first, but over time, a progressive memory leak can cause symptoms that range from decreased performance to crashing when the application runs out of memory. Worse, a leaking application that uses up all available memory can cause another application to crash, creating confusion as to which application is responsible. Even seemingly harmless memory leaks might be symptomatic of other problems that should be corrected. The Visual Studio debugger and C Run-Time (CRT) libraries provide you with the means for detecting and identifying memory leaks.
Troubleshooting pkgdef Files - The Visual Studio Blog For those using the Visual Studio 2010 SDK to create extensions for Visual Studio, you should find the creation and use of .pkgdef files to be mostly automatic (see What's a PkgDef and Why?). However, like anything involving computers and software, there are occasions that require manual intervention because they aren’t covered by the automatic settings or things can go wrong. This article illustrates some possible issues with .pkgdef files and provides techniques for discovering what’s wrong and correcting them. Please note that these techniques apply not only to the Visual Studio 2010 IDE, but also to applications built using the Visual Studio 2010 Shell (Isolated) (or Integrated).
Microsoft Visual Studio® 2010 development system and the Guidance Automation Toolkit (GAT) 2010 provide features that let you update guidance packages developed for Visual Studio 2008 so that they will work with Visual Studio 2010. This topic provides detailed instructions for converting, using the GAT to update the package. To convert a Visual Studio 2008 project to a Visual Studio 2010 project Delete any previous .gpstate file before opening the project in VS 2010 On the Start menu, right-click Microsoft Visual Studio 2010, and then click Run as administrator. How to Update a Visual Studio 2008 Guidance Package to Visual Studio 2010
PluginResources - dxcorecommunityplugins - Where to start when creating Coderush/Refactor/DXCore plugins - Community-contributed plugins for DXCore.
Decorate Your Code with Astonishing Attributes hen I first saw attributes in Visual Studio .NET, I thought they were some sort of oddity Microsoft had dragged in from Java, C++, or perhaps the Delta Quadrant. They clearly aren't Visual Basic code. To someone who uses angle brackets only for comparing two numbers, this Property statement, <XmlIgnore(True)> Public Property Salary() As Decimal, looks like it's been infected by the Borg! In fact, attributes don't look like code because they aren't code. They're really code "decorations" that supply extra information related to the code to anyone or any process that cares.
Visual Studio Extensions
Here's a preview of the new managed project system tutorial. It's written for Visual Studio 2008, Visual Studio SDK 1.0, and Windows Vista. Submitted by Martin Tracy. Tutorial: A Simple Managed Project System - Visual Studio Extensibility User Education
In most applications certain user interface areas are shared among various modules. Examples are all kinds of menus, tool bars, status bars, Outlook style sidebars and others. What is common for all of them is that they serve as containers for collections items (menu items, toolbar buttons, etc.) that user can activate to trigger some actions in the application. Understanding Composite UI Application Block, Part V
ThunderClap, Vol. 7, No. 2: Microsoft's Composite UI Application Block (CAB) -- A Prefabricated Toolkit for a Modern Smart Client App, and an in-house training class on it Thunderclap, the Newsletter of Rolling Thunder Computing Volume 7, Number 2, Fall 2005 In this issue: Feature Article: The Composite UI Application Block -- A Prefabricated Toolkit for a Modern Smart Client App Blatant Self-Promotion: New in-house class on Composite UI Application Block A Good Read: Two Books about Funerals by Thomas Lynch
If you examine the library header files, you may notice some unusual annotations, for example, _In_z and _Out_z_cap_(_Size). These are examples of the Microsoft source-code annotation language (SAL), which provides a set of annotations to describe how a function uses its parameters, for example, the assumptions it makes about them and the guarantees it makes on finishing. The header file <sal.h> defines the annotations. SAL Annotations
Understanding the TypeDescriptor: A Metadata Engine for Designtime Code - Partho's Weblog Hi folks - long time no see... E.L.D.S.? Yeah, sure!
using System; using System.Collections.Generic; using Microsoft.Practices.EnterpriseLibrary.Logging; Programatic Configuraton - Enterprise Library (v2.0) Logging Block
ObjectBuilder Dependency Injection Framework CodePlexProject Hosting for Open Source Software ObjectBuilder Dependency Injection Framework About ObjectBuilder ObjectBuilder is a framework for building dependency injection systems, originally written by the Microsoft patterns and practices group.
Enterprise Library : Configuration Part 1.1.3 - ConfigurationContext - Being Scott Densmore Last week I did a podcast (why do we call it that when we use the WMA format?) with Ron Jacobs on the ConfigurationContext. I know that the talk was abstract and probably a little hard to follow and I hope to clear that up today with another explanation and samples. I want to start off by saying that we intentionally did not document this “feature” because: a) we ran out of time , b) we knew it was a hard concept to cover, and c) I didn’t think people would be that interested (see what you get when you assume things). What is the ConfigurationContext ?
Visual Studio Widgets
patterns & practices Developer Center June 2013 Prism provides guidance to help you more easily design and build, flexible, and easy-to-maintain client business apps that run on Windows Runtime, Windows Presentation Foundation (WPF) desktop, Silverlight, or Windows Phone 7. Prism
Modifying the Guidance Package
Web Service Software Factory - View Discussion
patterns & practices Guidance Explorer
IVsProject2.AddItem Method (UInt32, VSADDITEMOPERATION, String, UInt32, String, IntPtr, VSADDRESULT) (Microsoft.VisualStudio.Shell.Interop)
INFO: List of known project type Guids
dxcorecommunityplugins - Community-contributed plugins for DXCore.
IntelliSense/Browsing options in VC++ 2010 - Visual C++ Team Blog