JIT Debugging using Visual Studio may fail when trying to debug a Session 0 Process on Windows 8

When you try to JIT debug a Session 0 process (like a windows service) on Windows 8 using Visual Studio Debugger, you may find it fails to launch the debugger and see below error in the Application Event Log "Just-In-Time debugging this exception failed with the following error: The operation attempted is not supported". The…

4

Unexpected Out of Memory Exception in .Net 4.5 Applications that uses Custom Stack Commit Size

Recently I worked with a developer who was seeing an Unexpected Out of Memory Exception from his .Net 4.5 Application that was using custom stack reserve and commit sizes for the application. He was setting the values in Visual Studio as shown below This particular application had some code that create new AppDomain using AppDomain.CreateDomain()…

4

VC++ application fails with R6034 "An application has made an attempt to load the C runtime library incorrectly."

Visual C++ application fails with the runtime error R6034 “An application has made an attempt to load the C runtime library incorrectly.” There can be many reasons for the crash. We should check some of the obvious reasons for it. I have listed some of them here: 1. Check to see if the manifest has multiple…

0

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

Visual Studio 2008 crashes if you have a high number of parallel builds

If you are facing a similar situation as titled please know that its a known issue with Visual Studio 2008 and its fixed in Visual Studio 2010. We can quantify high number of parallel builds as 4 or more. We just had a customer who was facing this crash for a long time and he…

1

.Net framework Error Message in the event log ambiguity

Following blog post has been written by EMEA Technical Lead Irfan Ahmed You see the following Error message in the event logs and confused with the exception it shows.  Event Type: ErrorEvent Source: .NET Runtime 2.0 Error ReportingEvent Category: NoneEvent ID: 5000Date: 10/29/2008Time: 2:10:36 PMUser: N/AComputer: NEWHRIS2Description:Event Type clr20r3, P1 1bgmfvseqkrpmf55nn2sg4ned1xmqtaz, P2 1.0.4.0, P3 47e3541a, P4…

0