Welcome to MSDN Blogs Sign in | Join | Help

February 2005 - Posts

IUnkown::Release() implementation

Mike Stall talks about “ Don’t do complicated work in Release() ”. He has a sample implementation for IUnkown::Release(). <quote> An object’s destructor has the same caveats if Release() is often implemented as: InterlockedDecrement(&m_ref)
Posted by junfeng | 8 Comments
Filed under: ,

Download Cache

Alan has an excellent article on how HTTP assembly download works. http://blogs.gotdotnet.com/alanshi/commentview.aspx/d3b8c7d9-b0c6-47fd-8ddf-20db971ba80d In this article he talked about download cache as well as fusion's interaction with Internet Explorer,
Posted by junfeng | 0 Comments
Filed under: ,

AppDomain.AppendPrivatePath is obsolete

In .Net framework 2.0, AppDomain.AppendPrivatePath is marked as obsolete. The deprecation is explained in Gotdotnet.com's break change web site http://www.gotdotnet.com/team/changeinfo/Backwards1.1to2.0/default.aspx#00000102 <quote> Title Cache
Posted by junfeng | 11 Comments
Filed under: ,

App.config reloading

I have seen the same question asked many times. “I changed app.config while the application is running. But the application does not read the change, unless I restart the application. What should I do?” .Net framework will read the app.config once, and
Posted by junfeng | 23 Comments
Filed under:

NGEN, now and then

MSDN magazine just posted a great article about NGEN, written by Reid Wilkes. It is a wonderful read if you want to know how NGEN works, and how to use NGEN. The article is here: NGen Revs Up Your Performance with Powerful New Features http://msdn.microsoft.com/msdnmag/issues/05/04/NGen/default.aspx
Posted by junfeng | 0 Comments
Filed under:

Netmodule vs. Assembly

In .Net framework Assembly is the minimum unit of deployment. You cannot deploy anything less than an assembly. To CLR, a type does not exist outside of the context of an assembly. Assembly can contain one or more files . The files can be any physical
Posted by junfeng | 7 Comments
Filed under:

linkedConfiguration --- a.k.a include in config file

It is common to share an assembly between several applications. Typically you will install the assembly to GAC. When you want to service the assembly, you create a publisher policy assembly, and install the publisher policy assembly to GAC. All the applications
Posted by junfeng | 1 Comments
Filed under: ,

Duplicate entries in config files

If there are multiple (conflicting) policy statements for the same assembly in a config file, which policy will fusion take? In .Net v1.0/v1.1, we will take the first policy. The rest policies are practically no-op. In .Net 2.0, we will preserve the same
Posted by junfeng | 0 Comments
Filed under: ,

Assembly ProcessorArchitecture and Binding Policy

By now we know assemblies compiled with .Net 2.0 will have ProcessorArchitecture . And we know from Josh's blog , that applications with processorArchitecture MSIL will run as 64 bit processes on 64 bit OS. And of course they will run as 32 bit processes
Posted by junfeng | 0 Comments
Filed under: ,
 
Page view tracker