Posts

Showing posts from February, 2015

Optimizing Windows Applications for Networking

This excel sheet is invaluable and shows all the settings I know of at every level (including the OS) to maximize the performance and scalability of network communications for any application running on windows. You will not be able to find all these settings in one place anywhere else. https://app.box.com/s/2rmmt0y09ybuu4747cpcae0adf7zfwkd

How to analyze a hang on a managed thread using windbg

The location of the crash dump file is: %LOCALAPPDATA%\Microsoft\Windows\WER - This is quite difficult to find online First download windbg using the latest windows SDK and select just the windows debugging components. Remember to use the right windbg for your process. If the process is x86, you need to use x86 windbg. This causes an error: “ Failed to load data access DLL, 0x80004005 ” Use this link to learn how to setup the environment properly : http://blogs.msdn.com/b/friis/archive/2010/09/02/managed-debugging-with-windbg-and-psscor2.aspx It mentions how to load the Psscor2 dll - Just note to copy the right dll (x86/ x64) after downloading it into the correct windbg.exe folder (x86/ x64). That is not mentioned clearly. http://www.microsoft.com/en-us/download/details.aspx?id=1073 Also, after setting the symbol path, please do .reload to reload the environment. srv*C:\Symbols\symserv*  http://msdl.microsoft.com/download/symbols .cordll -u -l...

Good explanation on thread safety of static methods.

http://stackoverflow.com/questions/17242732/c-sharp-are-parameters-thread-safe-in-a-static-method It is described very well in the answer.