Windows RT Store app Debugging

Windows RT devices are now available so I thought I’d do a few posts on debugging tools for Windows Store apps on Windows RT and the ARM assembly generated with Visual Studio 2012 native (C++) tools. Understanding ARM assembly is a useful skill for debugging and troubleshooting, particularly if you ever work with process dump…

1

System.MissingMethodException – Bad profiler changing the method name

Usually System.MissingMethodException exception is thrown when there is an attempt to dynamically access a method that does not exist. Recently we worked on few issues where we saw applications throwing System.MissingMethodException intermittently. In these issues, the method names of the functions were changed by a special prefix “__AW_”. For example, we saw the Exception type…

0

FormView in MDI Tabbed Style MFC Application doesn’t restore Cursor Focus Correctly on the Reactivation of Tabs

  If you find In an MFC Tabbed Application with a FormView,  the cursor focus switches to an expected control when the Tab is reactivated, please  be advised that the issue is due to a Design Flaw in MFC to handle Messages for a a  FormView   1.       To reproduce the issue, create  an MDI…

0

CMDIFrameWndEx::EnableMDITabsLastActiveActivation() does not work as expected in MDI Tabbed Style Application

  Recently I worked with a developer who was developing an MDI Tabbed Style MFC application  and wanted to Activate the Last Activated Tab when the current Tab is closed. She was trying to use  the method CMDIFrameWndEx::EnableMDITabsLastActiveActivation() for this purpose, by calling it from the OnCreate() method of her MainFrame class. Her code looked…

0

Making sense out of a nonsensical call stack

Recently a colleague wrote an application which on purpose caused an access violation. He took a memory dump of the process when it access violated and checked the call stack. To his surprise he didn’t see a direct call stack which would point him to the exact location in his source file but the call…

0