Sign in
Junfeng Zhang's Windows Programming Notes
Win32, Fusion, CLR, .Net Framework, and others
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
RSS for posts
Atom
RSS for comments
OK
Search
Tags
.NetFramework
Debugging
Fusion
General
Others
Pages
Troubleshooting
Vista
Win32
Archive
Archives
May 2012
(1)
July 2009
(1)
May 2009
(1)
March 2009
(1)
February 2009
(1)
December 2008
(2)
November 2008
(1)
August 2008
(2)
July 2008
(2)
June 2008
(2)
April 2008
(4)
March 2008
(2)
February 2008
(4)
January 2008
(1)
November 2007
(3)
October 2007
(1)
September 2007
(1)
August 2007
(5)
July 2007
(9)
June 2007
(3)
April 2007
(2)
March 2007
(3)
February 2007
(1)
January 2007
(2)
December 2006
(2)
November 2006
(4)
October 2006
(6)
September 2006
(5)
August 2006
(8)
July 2006
(2)
May 2006
(2)
April 2006
(12)
March 2006
(9)
February 2006
(5)
January 2006
(2)
December 2005
(10)
November 2005
(7)
October 2005
(2)
September 2005
(3)
August 2005
(1)
July 2005
(6)
June 2005
(8)
May 2005
(17)
April 2005
(9)
March 2005
(6)
February 2005
(9)
December 2004
(7)
November 2004
(12)
October 2004
(16)
September 2004
(16)
August 2004
(15)
July 2004
(10)
May 2004
(6)
April 2004
(14)
March 2004
(19)
February 2004
(39)
January 2004
(6)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Junfeng Zhang's Windows Programming Notes
Lock(object) and ThreadAbortException
Posted
over 6 years ago
by
Junfeng Zhang
2
Comments
We have experience some weird deadlock using managed code. We have a class with some shared resources. To protect the shared resources, we create a synchronization object, and use Lock(object) prior to access the shared resources. There is no nested...
Junfeng Zhang's Windows Programming Notes
Don't catch all exceptions
Posted
over 6 years ago
by
Junfeng Zhang
3
Comments
One of the best practices on exception is don't catch all exceptions. There are many reasons why this is a best practice. For example, You want to look at the application state when the exception is thrown so that you can understand exactly why the exception...
Junfeng Zhang's Windows Programming Notes
Finding Memory leaks
Posted
over 6 years ago
by
Junfeng Zhang
1
Comments
MSDN and Microsoft support web site have some great information on how to find memory leaks, both for managed application and native applications. Unmanaged: How to use Umdh.exe to find memory leaks http://support.microsoft.com/kb/268343 Managed: Debugging...
Junfeng Zhang's Windows Programming Notes
Questions and Suggestions -- July 20th Edition
Posted
over 6 years ago
by
Junfeng Zhang
5
Comments
This is the re-occuring post for questions and suggestions. I will not be able to provide any support beyond the trivial Q&A. For guaranteed quality of support, please contact Microsoft Product Support Service.
Junfeng Zhang's Windows Programming Notes
64 bit gacutil.exe
Posted
over 6 years ago
by
Junfeng Zhang
1
Comments
32 bit gacutil.exe can install/uninstall/enumerate 64 bit assemblies for GAC, so there is really no need for 64 bit gacutil.exe.
Junfeng Zhang's Windows Programming Notes
Unknown exception 0xe0434f4e
Posted
over 6 years ago
by
Junfeng Zhang
1
Comments
If you attach windows debugger to a .Net framework application, occasionally you may see debug spew of unknown exception 0xe0434f4e. (cfc.1244): Unknown exception - code e0434f4e (first chance) 0xe0434f4e is defined as EXCEPTION_HIJACK. (Copied...
Junfeng Zhang's Windows Programming Notes
BadImageFormatException maybe thrown when loading a valid assembly
Posted
over 6 years ago
by
Junfeng Zhang
0
Comments
We saw some cases when loading a perfect valid assembly, CLR may throw BadImageFormatException occasionally. In one particular case, we discover that it is caused by anti-virus scanners. Turn off the "Protection Against Unknown Threats" feature in the...
Junfeng Zhang's Windows Programming Notes
Reverse P/Invoke Marshaling Performance
Posted
over 6 years ago
by
Junfeng Zhang
2
Comments
Platform Invoke allows managed code to call unmanaged functions exported by an DLL. While the reverse P/Invoke allows managed code to pass a managed delegate as a callback to native code. Both P/Invoke and Reverse P/Invoke requires parameter marshaling...
Junfeng Zhang's Windows Programming Notes
Break on exception in Windows Debugger
Posted
over 6 years ago
by
Junfeng Zhang
0
Comments
In Windows Debugger, we can break on C++ exception by doing " sxe eh ". We can also break on CLR exception by doing " sxe clr ". But sometimes you may see the following debug spew: (94c.960): C++ EH exception - code e06d7363 (first chance) (94c...
Page 1 of 1 (9 items)