Adam Nathan's Blog
Discussing topics that usually relate to .NET, such as Popfly, Silverlight, WPF, or COM Interop.
June 2003 - Posts
Quiz: Gotcha with Exceptions and HRESULTs
The C# code below, when executed, prints the following: 0x80004002 0x80004002 Who can figure out why the second line printed isn't 0x80004003 ? using System; using System.Runtime.InteropServices; public class Quiz { const int E_NOINTERFACE = unchecked((int)0x80004002);
Read More...
CLR SPY and Customer Debug Probes: The Invalid IUnknown and Invalid VARIANT Probes
Whereas probes like Collected Delegate or Object Not Kept Alive catch coding mistakes in managed code, the Invalid IUnknown and Invalid VARIANT probes typically inform you when you're attempting to interoperate with a broken COM component. Either that,
Read More...
CLR SPY and Customer Debug Probes: The Object Not Kept Alive and Buffer Overrun Probes (A Quiz)
The Object Not Kept Alive and Buffer Overrun probes are unlike any other CDPs, because they do not output any messages to report bugs in your code. Instead, they change general CLR behavior with the goal of forcing non-deterministic bugs that can be almost
Read More...
TechEd Book Signing
I'll be doing a book signing (for .NET and COM: The Complete Interoperability Guide ) at the TechEd Mall tomorrow (Wed. 6/4) from 11:30-12:30 - immediately after the Interop presentation. If you're at TechEd, please stop by!
Read More...
CLR SPY and Customer Debug Probes: The Collected Delegate Probe
The most common mistake made when passing a delegate to unmanaged code (marshaled as a function pointer) is to allow the delegate to be garbage collected before unmanaged code is finished using it. This can happen because unmanaged code is invisible to
Read More...
Search
Go
This Blog
Home
About
Email
My Books
With Appearances In
My Sites
pinvoke.net
popfly.com
Disclaimer
Tags
Hearts
Managed Code
Misc
Non-Pro Tools
Popfly
Quizzes
Silverlight
Silverlight Unleashed
WCF
WPF
WPF Unleashed
Archives
September 2008 (1)
July 2008 (1)
June 2008 (1)
May 2008 (2)
February 2008 (1)
December 2007 (2)
October 2007 (2)
September 2007 (1)
July 2007 (1)
June 2007 (1)
May 2007 (2)
April 2007 (1)
February 2007 (2)
January 2007 (1)
December 2006 (1)
November 2006 (1)
September 2006 (1)
June 2006 (1)
May 2006 (4)
April 2006 (1)
March 2006 (1)
December 2005 (2)
November 2005 (1)
October 2005 (1)
September 2005 (12)
August 2005 (8)
July 2005 (6)
June 2005 (15)
May 2005 (8)
April 2005 (2)
September 2004 (1)
May 2004 (1)
January 2004 (1)
November 2003 (1)
October 2003 (3)
September 2003 (2)
August 2003 (2)
July 2003 (3)
June 2003 (5)
May 2003 (8)
April 2003 (5)
Syndication
RSS 2.0
Atom 1.0