Junfeng Zhang's Musing

things about the world, world of things

July, 2004

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