The hierarchy in flat memory: Heap and Stack

The hierarchy in flat memory: Heap and Stack   This section discusses Heap, related heap corruption/memory leak, and how to use pageheap to troubleshoot.   Heap is designed for efficiency use of the flat memory space   In Chinese version, it discusses why we need heap, and how it is built on the top of…

1

Exception and Debug Event, the feedback from OS

Exception and Debug Event, the feedback from OS   This section will firstly brief exception related tech, and then use example to demonstrate how to use exception to troubleshoot effectively.   Exception Brief   Exception is a mechanism to control code’s execution flow. In normal situation, the code executes consequently, like the following:   *p=11;…

1

Chapter Two, Assemnly code, Exception, Memory, Synchronization and Debugger

Chapter Two, Assemnly code, Exception, Memory, Synchronization and Debugger   (To save time, I will not translate the full Chinese content. I will skip some knowledge introduction)   This chapter covers usermode debugging related knowledge and tools, including assembly language, exception, memory layout, CRT, handle/CriticalSection/Thread Switch/Windbg…   It focuses on how to use the knowledge…

0

How the Chinese UI in SharePoint turns to English randomly

How the Chinese UI in SharePoint turns to English randomly.   Problem Description:   Windows SharePoint Portal is a web application that runs on .NET Framework, based on ASP.NET. The Administrator is able to configure the UI language, like English or Chinese. Someday a customer complained that their SharePoint could not show Chinese any more….

1

A boring, but typical, difficult case —- ASP.NET session lost

A boring, but typical, difficult case, ASP.NET session lost   Problem Description   It was an large ASP.NET project. In testing environment, everything is fine. In production environment, when the load went up, an unhandled NullReferenceException occurred randomly. Based on the analysis on code, it occurred when trying to access an Session Object, which should…

0

How a single ShellExecute call opens a TXT file, with another GIF open unexpectedly

Problem Description:   A customer called in, complained angrily. “A call to ShellExecute API, passing in a local txt file path, it opens a GIF file occasionally with the txt file! Definitely!” The customer was sure that the parameter was correct, and the return value for ShellExecute indicated the call succeeded.   Initial thinking  …

2

Hopeless performance. The ADO.NET 2.0 is slower than ADO 1.1

1.0            Warm up.   Firstly my mentor shared the following question with me:   Why the image gets reversed in mirror horizontally, but vertically.   I asked many people about this question, but seldom gave me the accurate answer in 3 mins. Some interesting answers here:   1.      People’s eye is horizontal not vertical. (Also…

0

I will try to translate my "UserMode Effective Debugger" to English

I almost finished my paper about “UserMode Effective Debugger” in Chinese, in my spare time. The paper is about how to debug application, like tess’s blog. Now I will try to translate it to English here.  The paper is divied into four parts. The first part is about how to think with a problem. The…

1

Pageheap download here

It seems pageheap is not included in windbg installation packages. Though we can use appVerifier or gflag to do the same task, pageheap is more convenient in lots of situations. pageheap.zip

1

文章的一些进展

该文章在三个多月前已经基本完成。这两天跟TieFeng和yeka交流了一下,接下来争取做好最后的工作。

0