Junfeng Zhang's Musing

things about the world, world of things

  • Junfeng Zhang's Musing

    100 posts

    • 5 Comments
    I started the blog late January this year, when the tide of blogging swept Microsoft. Half a year later, I hit a 100 posts mark. In between, I talked about Fusion, CLR, .Net framework, things I am interested in, things I think may help other people...
  • Junfeng Zhang's Musing

    Domain Neutral Assemblies

    • 16 Comments
    Chris Brumme ’s paper on AppDomains goes into great detail about the design of AppDomain. One of the things he discussed is assembly domain neutrality . Conceptually, a domain neutral assembly is an assembly that lives across multiple appdomains...
  • Junfeng Zhang's Musing

    3D UI on Windows

    • 5 Comments
    One of Chinese fellows in Rice univerity is doing a 3D UI project on Windows. http://www.infinite-3d.com/ As a one-man part time project (He is a Ph.D candidate in Space Physics), this is truely impressive.
  • Junfeng Zhang's Musing

    How Microsoft Uses Reflection

    • 1 Comments
    MSDN Magazine July 2004 Edition .Net matters section has a very interesting article How Microsoft Uses Reflection http://msdn.microsoft.com/msdnmag/issues/04/07/NETMatters/default.aspx I guess I should read MSDN magazine more from now on:)
  • Junfeng Zhang's Musing

    AppDomainSetup.DisallowApplicationBaseProbing

    • 7 Comments
    AppDomainSetup.DisallowApplicationBaseProbing is a new property we introduced in .Net framework 2.0 to control assembly probing. When this flag is set, the probing behavior is as following: 1. We will still probe GAC for strongly named assemblies...
  • Junfeng Zhang's Musing

    What's New in the .NET Framework 2.0 Beta

    • 10 Comments
    This is in .Net framework 2.0 SDK beta1 documentation. But oddly enough, this is not in MSDN for Visual Studio 2005 beta1. And this is not in MSDN web site. Anyway, I copied the list from 2.0 SDK beta1 documentation below: [Omitted changes in ADO.Net...
  • Junfeng Zhang's Musing

    Friend Assemblies

    • 9 Comments
    You have some types in your assembly A. And you have some assembly B. You really want assembly B to see those types. But you don't want them to open to the world. What do you do? In v1.0 and v1.1, you will mark those types as public, and then decorate...
  • Junfeng Zhang's Musing

    What is new in remoting in .Net 2.0?

    • 0 Comments
    Matt Tavis told us what is new in remoting in .Net 2.0 in a newgroup post. http://communities.microsoft.com/newsgroups/previewFrame.asp?ICP=whidbey&sLCID=US&sgroupURL=microsoft.private.whidbey.remoting&sMessageID=%253CWQFwN41bEHA.2924@cpmsftngxa06...
  • Junfeng Zhang's Musing

    KB Article 312546: Managed .exe File Sporadically Fails to Run over HTTPS

    • 0 Comments
    KB 312546 says running managed executable through HTTPS may not work. http://support.microsoft.com/default.aspx?scid=kb;EN-US;312546 This is causing some confusion. Exactly when things will not work? Our core developer explains it below: The...
  • Junfeng Zhang's Musing

    Whidbey breaking change --- Caching binding failures

    • 8 Comments
    This is one of the breaking change mentioned in gotdotnet.com's break change from .Net 1.1 to 2.0 Cache load failures in order to ensure that different app domains do not have different dependency loading success/failure characteristics in domain neutral...
  • Junfeng Zhang's Musing

    Assembly.Load* now apply policy

    • 3 Comments
    Gotdotnet.com has a link to the breaking change from .Net framework 1.1 to .Net framework 2.0. It does not include everything. This one is missing from the link. In .Net framework 1.1, there are Assembly.Load(String), Assembly.Load(AssemblyName...
  • Junfeng Zhang's Musing

    AppDomain.ApplyPolicy

    • 4 Comments
    If you have dealt with assembly loading, chances are you have asked this question: How do I know which assembly CLR will really load if I ask it to load some assembly? In .Net framework 1.0 and 1.1, there is really no good way other than load...
  • Junfeng Zhang's Musing

    MultiModule Assemblies

    • 9 Comments
    If you are programming with .Net framework, you will deal with Assemblies all the time. After all, assemblies are the building blocks of .Net framework. Assemblies can have single file , or can have multiple files . We typically refer an assembly...
  • Junfeng Zhang's Musing

    Can .NET framework 2.0 assemblies run under .Net framework 1.1?

    • 9 Comments
    Short answer: NO. Long answer: In .Net framework 2.0 many features are added. Many features(Generics first comes to mind) warrant a medata format change. As a result, .Net framework 1.0 and 1.1 will not recognize assemblies compiled with .Net framework...
  • Junfeng Zhang's Musing

    Dynamic PInvoke

    • 8 Comments
    CLR provides platform invoke mechanism to enable managed applications to call unmanaged APIs exported in a DLL. Here is a simple example: using System.Runtime.InteropServices; public class HelloWorld { public static void Main() { MessageBox(0, "Hello...
  • Junfeng Zhang's Musing

    How to enable CLR Server GC?

    • 9 Comments
    This is one of the mostly asked questions about CLR GC. CLR's GC has two modes: Server GC and WorkStation GC. The difference is discussed briefly in Gregor Noriski's MSDN article about writing high performance managed application( http://msdn.microsoft...
  • Junfeng Zhang's Musing

    echo '>' and '<'

    • 4 Comments
    '>' and '<' are special characters in command prompt. They means input and output redirect. So they can't be directly echoed in command prompt. You need to escape them with '^'. C:\>echo < The syntax of the command is incorrect. C:\>echo...
  • Junfeng Zhang's Musing

    Accessing Resources Using LoadFrom Locks Assembly

    • 5 Comments
    Mark Tucker asks this question: <quote> I have the need to place a resources-only assembly in a well-known directory location that is not the GAC or under the ApplicationBase. I then use Assembly.LoadFrom to load the resource, assembly.GetManifestResourceStream...
  • Junfeng Zhang's Musing

    Error 1709 when install .Net framework 1.1

    • 1 Comments
    Error 1709 is that Microsoft installer is not registered. “msiexec.exe /regserver” should fix that.
  • Junfeng Zhang's Musing

    Assembly loading failure when shadowcopy is enabled on multiple appdomains

    • 0 Comments
    There is a known assembly loading race in .Net framework 1.0 and 1.1 when shadow copy is enabled in multiple appdomains. If your application has multiple appdomains and multiple threads, and those appdomains have the same CachePath , and the same ApplicationName...
  • Junfeng Zhang's Musing

    Premature optimization is the root of all evil

    • 5 Comments
    Larry Osterman posted a blog about optimization http://blogs.msdn.com/LarryOsterman/archive/2004/05/03/125198.aspx . It simply says”Premature optimization is the root of all evil”! And I posted an interesting article about optimization...
  • Junfeng Zhang's Musing

    Relative Path

    • 4 Comments
    Relative path is used a lot in Win32, and it makes sense. When I say relative path, I mean relative to the current directory. After all, there is no other directory that I can relative to. But in .Net, we do have another one! And it is called ApplicationBase...
  • Junfeng Zhang's Musing

    Image File Execution Options

    • 25 Comments
    There is well-known (or not so well-known, depending on what you do) feature in NT family system, called “Image File Execution Options”. It is really in the registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion...
  • Junfeng Zhang's Musing

    AssemblyResolve Event

    • 11 Comments
    CLR uses documented heuristics to probe assemblies. If assembly can't be found through the standard heuristics, CLR will raise an AssemblyResolve event . You can subscribe AssemblyResolve event to provide the assembly in the case assembly can't be found...
  • Junfeng Zhang's Musing

    Deployment in windows

    • 2 Comments
    Mike wrote a blog about deployment in windows. ( Versioning - source of all good or evil? ). There are some interesting comments. Deployment in windows is a huge problem. The vision of fusion, is to make deployment in windows easy, safe, secure and...
Page 11 of 14 (350 items) «910111213»