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
How to get the assembly version and file version of your own assembly?
Posted
over 9 years ago
by
Junfeng Zhang
10
Comments
The question is, when your assembly is executing, how do you figure out the assembly version and file version of your own assembly? Your assembly (while executing) can be returned from System.Reflection.Assembly.GetExecutingAssembly(). So: Assembly...
Junfeng Zhang's Windows Programming Notes
Assembly listing Tool
Posted
over 9 years ago
by
Junfeng Zhang
2
Comments
So my submission in gotdotnet.com sample finally gets approved. Here is the link to download it. http://www.gotdotnet.com/Community/Resources/Default.aspx?AFXPath=/Resource[@ResourceId='F0CECD72-7287-4891-8D5E-5763AD14C2FD'] ] This is a tool to...
Junfeng Zhang's Windows Programming Notes
Console unicode output
Posted
over 9 years ago
by
Junfeng Zhang
4
Comments
Eric Lippert discussed how Windows Script Host output unicode in console for NT based OSes here . Of course, every console based applications have the same problem. This includes gacutil. In 1.0 and 1.1, gacutil translate everything to ANSI, then...
Junfeng Zhang's Windows Programming Notes
CLR Profiler, Office 2003, WPS Office 2003, and Open Office 1.1
Posted
over 9 years ago
by
Junfeng Zhang
2
Comments
So I was playing CLR Profiler lately. It comes with a very good document written in word. It is really a simple document with text, and a lot snapshots. The document is about 11M. When I finished reading the document, I noticed my machine kind of slows...
Junfeng Zhang's Windows Programming Notes
jusched.exe
Posted
over 9 years ago
by
Junfeng Zhang
38
Comments
I really hate applications doing thing on my back. That is why I rename %ProgramFiles%\Common Files\Real\Update_OB\realsched.exe to realsched.exe.bak. And I just find out something called jusched.exe is running on my back. tlist shows it is from...
Junfeng Zhang's Windows Programming Notes
Moving from Win32 to .Net
Posted
over 9 years ago
by
Junfeng Zhang
2
Comments
One of the biggest difference in Win32 and .Net is probing. In Win32 (and *nix), OS loader looks for binaries in directories specified in %PATH% environment variable. In .Net, we probes GAC, and app base. That is it. We do not honor %PATH% environment...
Junfeng Zhang's Windows Programming Notes
Performance: One big assembly vs several small assemblies.
Posted
over 9 years ago
by
Junfeng Zhang
9
Comments
I frequently see people ask the same question in microsoft.public.dotnet.framework.clr and microsoft.public.dotnet.framework.performance. Which one has better performance, one big assembly or several small assemblies? Strictly from a performance point...
Junfeng Zhang's Windows Programming Notes
Chris Brumme discusses Finalization
Posted
over 9 years ago
by
Junfeng Zhang
0
Comments
We had a rather heated internal disccusion about managed code reliability, and one of discussion is finalizer. Chris Brumme wrote a very long reply revealed the details of finalization and why it is not reliable. The great thing is, he posted it in his...
Junfeng Zhang's Windows Programming Notes
Cost of calling unmanaged code from managed C++
Posted
over 9 years ago
by
Junfeng Zhang
5
Comments
Question and answers about cost of calling unmanaged code from managed C++. From: Subject: RE: Cost of calling unmanaged code from managed C++ The biggest difference in performance is the cost of parameter marshalling. With C++ because...
Junfeng Zhang's Windows Programming Notes
Alan discussed Unification Policy
Posted
over 9 years ago
by
Junfeng Zhang
0
Comments
Alan discussed unification policy at his latest blog . As usual he puts a lot of though in his blog. Great read.
Junfeng Zhang's Windows Programming Notes
new MSN Explorer
Posted
over 9 years ago
by
Junfeng Zhang
15
Comments
Did you use the new MSN explorer? It is definitely one of the most beautiful softwares I have ever used.
Junfeng Zhang's Windows Programming Notes
How "safe" (from a best practice and supportability perspective) is the use of DLL injection techniques?
Posted
over 9 years ago
by
Junfeng Zhang
4
Comments
Another question in internal discussion. Here is one reply: From: Subject: RE: DLL Injection DLL injection is never safe. You're talking about squirting code into a process that was never designed, built, or tested by the process...
Junfeng Zhang's Windows Programming Notes
Why recursive directory copy does not exist, and why it should not.
Posted
over 9 years ago
by
Junfeng Zhang
17
Comments
This question comes up in internal discussion from time to time. The reason is, the semantics of directory copy is not well defined. It largely depends on what you need. Here are some questions you need to answer before you go implement one: 1....
Junfeng Zhang's Windows Programming Notes
Microsoft Virtual Server 2004 begins beta test
Posted
over 9 years ago
by
Junfeng Zhang
5
Comments
I don't work in VirtualPC team but I use their product almost everyday and I love it. So I think I should run some advertisement for them;) news coverage can be found here http://news.com.com/2100-1012_3-5161193.html?tag=nefd_top .
Junfeng Zhang's Windows Programming Notes
Fun stuff with \\?\
Posted
over 9 years ago
by
Junfeng Zhang
4
Comments
This comes up in an internal discussion about MAX_PATH limit. People do mention that the core file services supports syntax like \\?\ for path longer than MAX_PATH. The caveat is that file name with \\?\ is not canonicalized by the OS. This can lead to...
Junfeng Zhang's Windows Programming Notes
How is lock keyword of C# implemented?
Posted
over 9 years ago
by
Junfeng Zhang
5
Comments
This question is asked in an internal discussion. And here is the answer from CLR team. From: Subject: RE: How is lock keyword of C# implemented? At the core, it’s typically one „lock cmpxchg“ instruction (for x86) for entry, and...
Junfeng Zhang's Windows Programming Notes
File Not Found vs Network Path not found
Posted
over 9 years ago
by
Junfeng Zhang
1
Comments
So the other day I received an email from a colleague. He had an assembly load failure. And the fusion binding log looks like following: *** Assembly Binder Log Entry (2/10/2004 @ 5:41:08 PM) *** The operation failed. Bind result: hr = 0x80070035....
Junfeng Zhang's Windows Programming Notes
Windows XP and ClearType
Posted
over 9 years ago
by
Junfeng Zhang
1
Comments
I have LCD at home, and I turn on ClearType from Control Panel->Display->Appearance->Effects. But I never know I can tune the ClearType setting. Visit this page http://www.microsoft.com/typography/ClearTypeInfo.mspx to tune your ClearType...
Junfeng Zhang's Windows Programming Notes
Fusion binding log and fuslogvw.exe
Posted
over 9 years ago
by
Junfeng Zhang
12
Comments
Suzanne blogs again! This time, she is helping you on diagnose MissingMethodException . Of course, whatever she tries to help you, she can't live without fusion log. So what exactly is fusion log? Remember what fusion's role is in assembly binding...
Junfeng Zhang's Windows Programming Notes
FileVersion and GAC
Posted
over 9 years ago
by
Junfeng Zhang
5
Comments
Every assembly has an identity, which includes name, version, culture, and public key/token. Also every binary in Windows can have a file version. The file version is orthogonal to assembly version, and there is no co-relation at all. You can change them...
Junfeng Zhang's Windows Programming Notes
foo.exe and foo.dll
Posted
over 9 years ago
by
Junfeng Zhang
0
Comments
So that I got a complain today about foo.exe and foo.dll. The whole story is like this: The tester produces two binaries foo.exe and foo.dll, with the same identity (name, version, culture, public key token). And the tester uses gacutil to install...
Junfeng Zhang's Windows Programming Notes
AppDomainSetup explained
Posted
over 9 years ago
by
Junfeng Zhang
2
Comments
AppDomainSetup is a properties bag. It stores various properties that affects binding decision in an appdomain, as well as other decision as well. MSDN documents each properties in AppDomainSetup. But there are a few properties that are not well explained...
Junfeng Zhang's Windows Programming Notes
Return to fusion land
Posted
over 9 years ago
by
Junfeng Zhang
0
Comments
After much deviation, finally I returned to fusion land. Hope you enjoy it.
Junfeng Zhang's Windows Programming Notes
AppDomain and Shadow Copy
Posted
over 9 years ago
by
Junfeng Zhang
15
Comments
.Net Framework has a feature called Shadow Copy . When shadow copy is enabled on an appdomain, assemblies loaded in that appdomain will be copied to a shadow copy cache directory, and will be used from there. This is great because the original file is...
Junfeng Zhang's Windows Programming Notes
WritePrivateProfileString and AnitVirus
Posted
over 9 years ago
by
Junfeng Zhang
2
Comments
Another shocking discovery. WritePrivateProfileString hangs because AntiVirus is accessing the ini file. I really don't know what to do now.
Page 1 of 2 (39 items)
1
2