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
Slow appdomain shutdown
Posted
over 9 years ago
by
Junfeng Zhang
0
Comments
If you have a lot assemblies loaded in the appdomain, you may experience slow appdomain shutdown, coupled with CPU spike. This thread explained why. http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet.framework.performance&mid...
Junfeng Zhang's Windows Programming Notes
So which CLR will my app use?
Posted
over 9 years ago
by
Junfeng Zhang
0
Comments
We have shipped several versions of .Net framework: 1.0, 1.1, and 2.0 is on the horizon. All of them are side by side, meaning, someone may be using 1.0 CLR, at the same time, someone else is using 1.1 CLR. In the same process, there can be only one CLR...
Junfeng Zhang's Windows Programming Notes
Java class data sharing
Posted
over 9 years ago
by
Junfeng Zhang
5
Comments
Java 1.5 introduces class data sharing: http://java.sun.com/j2se/1.5.0/docs/guide/vm/class-data-sharing.html This looks a lot like .Net's ngen concept, except it only works on core classes(for .net's equivalence, mscorlib.dll). Maybe their next...
Junfeng Zhang's Windows Programming Notes
mscorlib.resources couldn't be found! Large parts of the BCL won't work!
Posted
over 9 years ago
by
Junfeng Zhang
0
Comments
Brian Grunkemeyer from BCL team answers one question about mscorlib.resources here: http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet.framework.clr&mid=586edffa-c09d-470d-ba23-a99832acabfa
Junfeng Zhang's Windows Programming Notes
KB 329065 Access Denied Error When You Make Code Modifications with Index Services Running
Posted
over 9 years ago
by
Junfeng Zhang
2
Comments
KB article 329065 describes how index services can affect ASP.NET. The root cause of the problem is CreateFile flag FILE_SHARE_DELETE. When the flag is specified, you will be able to delete the file, even it is in use by other applications. The...
Junfeng Zhang's Windows Programming Notes
Fusion binding log and IE cache
Posted
over 9 years ago
by
Junfeng Zhang
0
Comments
By default fusion uses IE cache for the binding log. If IE screwd up, fusion can't write/read binding log from IE cache. If that happens, you can clear IE cache, and fusion binding log should work after that. Of course, if you use custom log...
Junfeng Zhang's Windows Programming Notes
eWeeks announces Fourth Annual Excellence Award
Posted
over 9 years ago
by
Junfeng Zhang
1
Comments
http://www.eweek.com/article2/0,1759,1560543,00.asp Microsoft Visual Studio.Net 2003, Windows Server 2003 and Office OneNote 2003 are among the winner list. In addition, Office SharePoint Portal Server 2003, System Management Server 2003, Windows Right...
Junfeng Zhang's Windows Programming Notes
RegDeleteKeyEx
Posted
over 9 years ago
by
Junfeng Zhang
1
Comments
For applications running under WOW, they can't delete a reg key under 64bit hive using RegDeleteKey. They have to use RegDeleteKeyEx . RegDeleteKeyEx exist in advapi32.dll, only in 64bit OS.
Junfeng Zhang's Windows Programming Notes
Fusion Global Assembly Cache API
Posted
over 9 years ago
by
Junfeng Zhang
11
Comments
Fusion Global Assembly Cache API is not documented in MSDN, but it is documented in KB article 317540 http://support.microsoft.com/default.aspx?scid=kb;en-us;317540 . I have received many questions about how to use fusion APIs. In the coming weeks...
Junfeng Zhang's Windows Programming Notes
KEY_WOW64_64KEY and KEY_WOW64_32KEY
Posted
over 9 years ago
by
Junfeng Zhang
1
Comments
This is really about Win32 on Win64, or Windows on Windows, or short for WOW. MSDN has many information about 64 bits Windows here ( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/64bitwindows.asp ). One particular piece...
Junfeng Zhang's Windows Programming Notes
Publisher Policy
Posted
over 9 years ago
by
Junfeng Zhang
3
Comments
Alan has a great discussion on assembly binding policies here ( http://blogs.gotdotnet.com/alanshi/commentview.aspx/d4edb084-c625-4b6e-8e5c-7c2580cfcee9 ). I'll just talk about publish policy here. MSDN documents how to create a publisher policy here...
Junfeng Zhang's Windows Programming Notes
Jim Hugunin: IronPython: A fast Python implementation for .NET and Mono
Posted
over 9 years ago
by
Junfeng Zhang
1
Comments
Jim Hungunin posted a paper about an implementation of Python for .Net IronPython: A fast Python implementation for .NET and Mono http://www.python.org/pycon/dc2004/papers/9/IronPython_PyCon2004.html In this paper, he started out trying to show...
Junfeng Zhang's Windows Programming Notes
Alan's rebuttal to Chris Sells' "Avoid the GAC"
Posted
over 9 years ago
by
Junfeng Zhang
0
Comments
Alan writes a blog to rebut Chris Sells' “ Avoid the GAC ”. Chris does have a point to avoid the GAC for casual application developers. The problem is he over-extended his argument to say GAC should be avoided for all the cases. Windows...
Junfeng Zhang's Windows Programming Notes
ngen app.exe asm1 asm2
Posted
over 9 years ago
by
Junfeng Zhang
0
Comments
This is a follow up of my previous post. Ngen.exe accepts options like “ngen app.exe asm1 asm2 ...”, where asm1/asm2 can be display name, or file path. If you use this syntax, ngen will compile all the assemblies in the context of app.exe...
Junfeng Zhang's Windows Programming Notes
JIT Compilation and Performance - To NGen or Not to NGen?
Posted
over 9 years ago
by
Junfeng Zhang
5
Comments
Jeffrey Richter is easily one of my favorite authors. His book “Programming Applications for Microsoft Windows” is still the most comprehensive Win32 programming guide book. And his book “Applied Microsoft .Net Framework programming”...
Junfeng Zhang's Windows Programming Notes
Lenovo wins Olympic Games deal
Posted
over 9 years ago
by
Junfeng Zhang
1
Comments
News coverage here: http://news.com.com/2100-1003_3-5180359.html?tag=nefd_top . For people don't know, Lenovo is the biggest computer OEM in China. Honestly, this is one of the few times I see a China company on main page of news.com.
Junfeng Zhang's Windows Programming Notes
The located assembly's manifest definition with name xxx.dll does not match the assembly reference
Posted
over 9 years ago
by
Junfeng Zhang
17
Comments
This is a very common Assembly.Load failure exception text. In fusion terminology, this is called Ref-Def-Mismatch. This exception is thrown when fusion finds an assembly that does not match what you are looking for. A very common mismatch is version...
Junfeng Zhang's Windows Programming Notes
Dating Design Patterns
Posted
over 9 years ago
by
Junfeng Zhang
3
Comments
http://www.datingdesignpatterns.com/
Junfeng Zhang's Windows Programming Notes
VS won't reference assemblies in GAC
Posted
over 9 years ago
by
Junfeng Zhang
3
Comments
This is by design. The reason is that assemblies installed in YOUR development machine is not necessary the same as what your application requires. Let VS to reference assemblies installed in your development machine is clearly not the right thing...
Junfeng Zhang's Windows Programming Notes
UCOMIStream interface
Posted
over 9 years ago
by
Junfeng Zhang
0
Comments
UCOMIStream interface is the managed definition for COM IStream interface. You can use it to interop with unmanaged IStream. It lives in System.Runtime.InteropServices namespace.
Junfeng Zhang's Windows Programming Notes
OpenThreadToken
Posted
over 9 years ago
by
Junfeng Zhang
0
Comments
OpenThreadToken returns an access token for the specific thread. OpenThreadToken will fail with ERROR_NO_TOKEN if the thread is not impersonated. If you want to get the thread token regardless if the thread is impersonated or not, you should catch...
Junfeng Zhang's Windows Programming Notes
MSDN newsgroups
Posted
over 9 years ago
by
Junfeng Zhang
1
Comments
MSDN has a web based news reader for all the microsoft public newsgroups at http://msdn.microsoft.com/newsgroups/ . It is mostly Javascript driven. So if you want to copy an URL for a post, you can't right click and choose “Copy ShortCut”...
Junfeng Zhang's Windows Programming Notes
Get HResult out of System.Exception class
Posted
over 9 years ago
by
Junfeng Zhang
0
Comments
System.Exception has a protected property HResult. To read the property, use System.Runtime.InteropServices.Marshal.GetHRForException().
Junfeng Zhang's Windows Programming Notes
Platform Invoke Resources
Posted
over 9 years ago
by
Junfeng Zhang
1
Comments
This is a post from CLR team to newsgroup microsoft.public.dotnet.framework.clr. "Jesse Kaplan" wrote in message news:404f59e4$1@news.microsoft.com ... > Platform Invoke Resources > > > > In our efforts to make the .Net platform continuously...
Junfeng Zhang's Windows Programming Notes
When an Assembly.Load is not really Assembly.Load
Posted
over 9 years ago
by
Junfeng Zhang
2
Comments
This is an interesting discovery I find when I was investigating a regression. The following code is really Assembly.LoadFrom AssemblyName assemName = new AssemblyName(); assemName.CodeBase = pathToAssembly; resultAssembly = Assembly.Load(assemName...
Page 12 of 14 (350 items)
«
10
11
12
13
14