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 do I mix C# and C++ code in a single assembly?
Posted
over 8 years ago
by
Junfeng Zhang
5
Comments
This is an FAQ posted internally. Share it with everyone. It applies to .Net framework 2.0 beta2+. How do I mix C# and C++ code in a single assembly? If your C++ code is not compiled with /clr:safe (i.e. it is compiled with /clr or /clr:pure...
Junfeng Zhang's Windows Programming Notes
Assembly.LoadFrom
Posted
over 8 years ago
by
Junfeng Zhang
8
Comments
Assembly.LoadFrom is a weirdo. 1. It is order dependent. If you call Assembly.LoadFrom on multiple assemblies with the same assembly name, you will always get the first copy, even though those assemblies have different file paths. 2. Assemblies loaded...
Junfeng Zhang's Windows Programming Notes
DELETE PEND == ERROR_ACCESS_DENIED
Posted
over 8 years ago
by
Junfeng Zhang
0
Comments
In my previous post I talked about how FILE_SHARE_DELETE can cause ERROR_ACCESS_DENIED error. Diagnose access denied error is hard, especially when it only happens under stress. Fortunately FileMon from sysinternals folks can capture all the file...
Junfeng Zhang's Windows Programming Notes
Publisher Policy revisit
Posted
over 8 years ago
by
Junfeng Zhang
5
Comments
There are several layers of binding policies in .Net framework. App Policy, Publisher Policy, Host Policy and Admin policy. Policies are defined in config files. The config files are parsed once per AppDomain. The parsed result is used later for...
Junfeng Zhang's Windows Programming Notes
CLR Side by Side and Compatibility
Posted
over 8 years ago
by
Junfeng Zhang
1
Comments
CLR side by side does not make compatibility any easier. ...
Junfeng Zhang's Windows Programming Notes
Using GAC
Posted
over 8 years ago
by
Junfeng Zhang
4
Comments
I still get questions about whether to use GAC or not. People point to me Chris Sells's article Avoid the GAC . Chris' article does not represent Microsoft's official stand. We recommend people to put assemblies to GAC whenever make sense.
Junfeng Zhang's Windows Programming Notes
Assemblies Side by Side
Posted
over 8 years ago
by
Junfeng Zhang
6
Comments
CLR today supports multiple versions of an assembly side by side, contrast to native loader. In the native world, when you call LoadLibrary(“foo.dll”) multiple times, you will only get one copy of foo.dll loaded. In CLR, since the assembly name...
Junfeng Zhang's Windows Programming Notes
How to find out where Assembly.Load(String) would load an assembly from without actually doing it?
Posted
over 8 years ago
by
Junfeng Zhang
7
Comments
How to find out where Assembly.Load(String) would load an assembly from without actually doing it?...
Junfeng Zhang's Windows Programming Notes
Per-User GAC
Posted
over 8 years ago
by
Junfeng Zhang
9
Comments
GAC gives you three advantages in terms of deployment: Sharing . Assemblies in GAC are shared among all applications for all users. Versioning . Multiple versions of the same assemblies can co-exist in GAC. Servicing . When you install...
Junfeng Zhang's Windows Programming Notes
Dynamic nature of CLR assemblies loading
Posted
over 8 years ago
by
Junfeng Zhang
5
Comments
This discussion only applies to Assembly.Load(). Today CLR's assemblies loading mechanism is very dynamic. The dynamic nature is shown in various places: 1. Dependencies are not resolved until they are actually used. 2. You can subscribe to AssemblyResolve...
Junfeng Zhang's Windows Programming Notes
SQLCLR team starts blogging
Posted
over 8 years ago
by
Junfeng Zhang
1
Comments
In case you don't know, SQLCLR team starts blogging now. http://blogs.msdn.com/sqlclr/default.aspx If you want to know about CLR in Yukon, watch their blog.
Junfeng Zhang's Windows Programming Notes
GAC Internals Are Implementation Detail
Posted
over 8 years ago
by
Junfeng Zhang
3
Comments
GAC Internals Are Implementation Detail...
Junfeng Zhang's Windows Programming Notes
Compatibility is evil
Posted
over 8 years ago
by
Junfeng Zhang
5
Comments
From a business stand point of view, compatibility is God. New versions of .Net framework should never break applications working fine in previous version of .Net framework. But from a developer of .Net framework’s point of view, compatibility is...
Junfeng Zhang's Windows Programming Notes
On Plug-ins and Extensible Architectures
Posted
over 8 years ago
by
Junfeng Zhang
4
Comments
ACMQueue.com's March 2005 Edition has an article by Dorian Birsan from IBM. On Plug-ins and Extensible Architectures http://acmqueue.org/modules.php?name=Content&pa=showpage&pid=286 The discussion is based on Eclipse project. But much of...
Junfeng Zhang's Windows Programming Notes
Assemblies in LoadFrom context can’t be domain neutral, and can’t use NGEN
Posted
over 8 years ago
by
Junfeng Zhang
0
Comments
Assemblies in LoadFrom context can’t be domain neutral. Also they can’t use NGEN. What is so special about assemblies in LoadFrom context that they can’t be the same as assemblies in the default load context? For one thing, assemblies in LoadFrom...
Junfeng Zhang's Windows Programming Notes
ReflectionOnlyAssemblyLoad and binding policy
Posted
over 8 years ago
by
Junfeng Zhang
0
Comments
I discussed ReflectionOnlyAssemblyLoad in detail here: http://blogs.msdn.com/junfeng/archive/2004/08/24/219691.aspx ReflectionOnlyAssemblyLoad explicitly does not apply any binding policy. This is so that you can get the exact assembly you requested...
Junfeng Zhang's Windows Programming Notes
Disclaimer
Posted
over 8 years ago
by
Junfeng Zhang
0
Comments
Disclaimers...
Page 1 of 1 (17 items)