Search this blog:
RSS
-
Top Posts & Pages
Categories
Archives
- March 2020 (1)
- November 2017 (2)
- October 2017 (1)
- July 2017 (1)
- November 2016 (1)
- August 2016 (1)
- July 2016 (1)
- March 2016 (2)
- August 2015 (1)
- April 2015 (2)
- March 2015 (1)
- October 2014 (1)
- September 2014 (1)
- August 2014 (1)
- July 2014 (2)
- June 2014 (7)
- February 2014 (3)
- October 2013 (2)
- September 2013 (1)
- August 2013 (2)
- June 2013 (4)
- April 2013 (1)
- March 2013 (2)
- January 2013 (2)
- December 2012 (1)
- September 2012 (2)
- August 2012 (1)
- May 2012 (2)
- April 2012 (6)
- March 2012 (3)
- February 2012 (2)
- December 2011 (2)
- November 2011 (3)
- October 2011 (2)
- September 2011 (1)
- August 2011 (3)
- June 2011 (1)
- May 2011 (3)
- April 2011 (1)
- February 2011 (1)
- January 2011 (2)
- December 2010 (2)
- November 2010 (4)
- September 2010 (1)
- August 2010 (1)
- June 2010 (3)
- May 2010 (2)
- January 2010 (1)
- December 2009 (1)
- November 2009 (3)
- October 2009 (3)
- August 2009 (1)
- June 2009 (2)
- May 2009 (3)
- April 2009 (6)
- March 2009 (5)
- February 2009 (5)
Author Archives: Ofek Shilon
Visual Studio Projects that Just Keep Rebuilding, or: How Quantum Mechanics Mess Up Your Build
A lot has already been said on it, (no, seriously, a lot) and yet some root causes are not yet covered. All that follows holds for C++ projects, C#, VB, and everything MSBuild in general. The symptom Normally if you build your solution, change … Continue reading
Posted in Uncategorized
7 Comments
How to Make a Phone Book Build and Run
Here’s a short cheat sheet summarizing an internal talk I gave a while ago about VC++ build diagnostics. These switches and tools are all documented, most are surveyed in previous posts here, and all are very useful when struck by … Continue reading
Posted in Visual Studio
Leave a comment
An equivalent project (a project with the same global properties and tools version) is already present
Quick note: when you get this error while trying to add a VC project to your solution, good chance your project is missing a .filters file. Googling taught me only that the same error message had a different reason a … Continue reading
Posted in VC++, Visual Studio
Leave a comment
Tinkering with VS2015 (CTP 6)
Today I downloaded the latest VS bits and played around with the native debugger. It was a brief session and so would be the records of my impressions. J Universal CRT is here! And seems like a great idea. A … Continue reading
Posted in Debugging, VC++
Leave a comment
Accelerating Debug Runs, Part 2: _ITERATOR_DEBUG_LEVEL
A previous post discussed the Windows Debug Heap – with the main motivation being how to avoid it, as it is just empty, expensive overhead, and it isn’t clear why it is on by default in the first place. Remarkably, … Continue reading
Accelerating Debug Runs, Part 1: _NO_DEBUG_HEAP
(A more appropriate but even-less-catchy title might have been ‘accelerating runs from the debugger‘. As elaborated below, these two are not strictly equal). A common notion is that debug builds can and should carry as much debugging overhead as one … Continue reading
Posted in Debugging, Visual Studio, Win32
Leave a comment
Debugging Memory Corruption II
Some years ago I shared a trick that let’s you call _CrtCheckMemory from the debugger anywhere, without re-compilation. The updated (as of VS2013) string to type at a watch window is: {,,msvcr120d.dll}_CrtCheckMemory() Let’s expand on that today, in two steps. … Continue reading
Posted in Debugging, VC++
3 Comments
Hidden Tracepoint Keywords
The tracepoints window includes instructions for several special keywords, the most useful by far being $CALLSTACK: These are not all there are – two more exist: $TICK and $FILEPOS. Quoting the documentation: $TICK inserts the current CPU tick count, while $FILEPOS inserts … Continue reading
Posted in Visual Studio
Leave a comment
Debugging Handle Leaks
This is all well documented stuff and I won’t go into details – it’s here mostly for self reference (3rd time I had to chase this down in google). Steps are: (1) Install WDK to integrate the WinDbg engine with … Continue reading
Posted in Debugging, Visual Studio, Win32
Leave a comment
UseDebugLibraries and Wrong Defaults for VC++ Project Properties
Many of the projects I’m working on seem to have wrong default properties in Debug configuration. For example, ‘Runtime Library’ is explicitly set to /MDd but defaults to /MD. ‘Basic Runtime Checks’ is explicitly set to /RTC1 but defaults to … Continue reading
Posted in MSBuild, VC++
5 Comments