Junfeng Zhang's Musing

things about the world, world of things

February, 2005

  • Junfeng Zhang's Musing

    App.config reloading

    • 23 Comments
    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...
  • Junfeng Zhang's Musing

    AppDomain.AppendPrivatePath is obsolete

    • 11 Comments
    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...
  • Junfeng Zhang's Musing

    IUnkown::Release() implementation

    • 8 Comments
    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)...
  • Junfeng Zhang's Musing

    Netmodule vs. Assembly

    • 7 Comments
    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...
  • Junfeng Zhang's Musing

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

    • 1 Comments
    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...
  • Junfeng Zhang's Musing

    Download Cache

    • 0 Comments
    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...
  • Junfeng Zhang's Musing

    NGEN, now and then

    • 0 Comments
    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...
  • Junfeng Zhang's Musing

    Assembly ProcessorArchitecture and Binding Policy

    • 0 Comments
    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...
  • Junfeng Zhang's Musing

    Duplicate entries in config files

    • 0 Comments
    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...
Page 1 of 1 (9 items)