Junfeng Zhang's Musing

things about the world, world of things

December, 2008

  • Junfeng Zhang's Musing

    ThreadPool.BindHandle

    • 8 Comments
    I mentioned that we can use ThreadPool.BindHandle to implement asynchronous IO. Here are roughly the steps necessary to make it happen: 1. Create an overlapped file handle SafeFileHandle handle = CreateFile( filename, Win32.GENERIC_READ_ACCESS...
  • Junfeng Zhang's Musing

    Exception Filter

    • 7 Comments
    C# does not support exception filter. However, VB and IL support it. To add exception filter to C#, we can build a function in VB or IL, then call it in C#. The example below is one way we may implement the function to support exception filter. It...
Page 1 of 1 (2 items)