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)
Category Archives: Win32
Checking if your Graphics software runs on GPU
What are we asking exactly? This is actually not that easy to phrase. If you see anything on a screen, your software does make use of some graphics processing unit – but it is more likely you’re interested in particular … Continue reading
Tracking the Current Directory from the debugger: RtlpCurDirRef
Some rogue code was changing our current directory from under our feet, and we needed to catch it in action. I was looking for a memory location to set a data breakpoint on. (Note: for the remainder of this post … Continue reading
On API-MS-WIN-XXXXX.DLL, and Other Dependency Walker Glitches
Dependency walker is the tool of choice for static dependency analysis of native binaries (it has some dynamic analysis too, but that niche at least has some alternative solutions). It is in a rather sorry state, however – development seems … Continue reading
Posted in Win32
22 Comments
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 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
Reading Specific Monitor Dimensions
Almost 2 years ago I wrote about the proper way of getting the EDID – and in particular the physical monitor size. I did leave a loose end: I actually had to query the dimensions of a specific monitor (specified … Continue reading
Posted in Win32
7 Comments
Solving rxinput.dll Crashes
Recently I started getting hit by access violations with weird stacks: It seems an exception is thrown early in the life of some thread, during the initialization routine of rxinput.dll – a dll I never heard of. Naïve googling taught … Continue reading
Posted in DirectX, Win32
3 Comments
Entry Point Not Found, and other DLL Loading Problems
Occasionally I come across DLL load problems: The verbosity of the error messages varies greatly. In their raw form these include at least the DLL name, but as various frameworks come into play (for the error message above, it’s .net) … Continue reading
Posted in Debugging, Win32
19 Comments
RGB vs. BGR in Bitmaps
What is the channel order in bitmap pixels? Does the R channel occupy the least- or most- significant byte? Ah, the answer to this simple question held me back for nearly a day while debugging some image processing code. MSDN, … Continue reading
Three F-keys Gotchas
We recently did a small internal app, that had to use all 12 F-keys – which turned out to be surprisingly cumbersome. I hadn’t found this stuff concentrated on a single place, and certainly it could have saved me some … Continue reading
Posted in MFC, Win32
4 Comments