How to get line numbers in your code for specific events, viz., exception?

One of my clients came up with a requirement to track down the line of the code immediately when the exception is thrown, note that this is ‘without the use of the debuggers’. My research led me to lot of questions online about this and hence I am trying to write a succinct blog about what…


Swallowing SEH Exceptions is EVIL!

This case was a good case-in-point of why crashing can sometimes be a good thing – at least it helps you find and fix your bugs! This issue was reported as ‘my application just randomly disappears’.  We had the developer run this app under procdump with unhandled exceptions being caught – ‘procdump -ma -e Test.exe’….

0

Enumerating all Modules in a Managed Process

I recently helped a developer that needed to enumerate all of the modules in an arbitrary process. They are given a Process ID (PID) and need to enumerate all of the modules, both native and managed that have been loaded by the process. They started by creating a System.Diagnostics.Process object for the given PID with…

0

Migration from VS2012 to VS2015 IDE only throws compiler upgrade warning

Irfan Ahmed, Senior Support Escalation(Languages EMEA team) brings to us this amazing write up in his own words. Read on!!  While work on an issue; I came across a requirement where customer is migrating his project from VS2012 IDE to VS2015 IDE. Currently they are migrating only IDE of the project where they are still…

0

Debugging an intermittent freeze issue in a winforms application, managed memory leak detection using SOS: Methodology and Approach

Hello, I am back to my old habits of blogging about some interesting things that we do. So recently we were approached by one of our important partners regarding a Freeze in their Winforms application which was ‘intermittent’. This freeze or hang per say was accompanied with the below exception,  Exception: System.ComponentModel.Win32ExceptionMessage: Error creating window handle. …

0

Creating user-mode crash dumps on production machine

Prabhat Tandon, Support Escalation Engineer, brings this amazing write up summarising his experience while working with one of his customers. Recently I was troubleshooting an intermittent, hard to reproduce application crash in the production environment. We had a restriction to install debuggers. In such situation, Windows Error Reporting (WER) comes as a handy tool. Here…

0

Issues while migration of website from .Net Framework 3.5 to .Net Framework 4.0 with Web Server on .Net Framework 4.5

Irfan Ahmed, Senior Support Escalation Engineer, brings to us another solution to a unique problem, while working with one of his customers. I have come across this issue where customer has migrated his website from .NET Framework 3.5 to .NET Framework 4.0 and the Web server has .NET Framework 4.5. 1 installed. The web application…

0

Tips on troubleshooting Visual Studio Performance issues

Another nice write up from Senior Support Escalation Engineer, Irfan Ahmed on Visual Studio performance. Visual Studio performance is always a topic in discussion. I was working on a Visual Studio performance issue recently and got to know something which I believe should be shared and hence this blog for you. Hope you will find…

0

Login problem with Visual Studio 2013 due to issues with JSON dll

Irfan Ahmed, Senior Support Escalation, brings us his experience while working with one of his customers, in the below mentioned amazing post. In recent past I come across an issue where is customer login to Visual Studio 2013, he gets the following error. Method not found ‘Void Newtonsoft.Json.Serialization.JsonDictionaryContract.set_PropertyNameResolver (System.Func\2<System.String.System.Strings>)’ Customer does have have JSON dll…

0

Debugging a linker error: error LNK2019

I am back with one of the classic roadblocks on your way up to development . Linker errors! Well some times these can turn out to be time consuming. Although I am going to discuss one of the scenarios that we worked on, the below can apply to most of the linker issues at least…

0