Adam Nathan's Blog
Discussing topics that usually relate to .NET, such as Popfly, Silverlight, WPF, or COM Interop.
Browse by Tags
All Tags
»
Quizzes
(RSS)
Managed Code
Quiz: Searching in a managed array
Sorry for my recent lack of blogging. There's been a lot going on these days! As the banner on my blog now indicates, you'll be able to catch me at two upcoming conferences. As with TechEd in June, Sonja Keserovic and I will be giving an Interop presentation
Read More...
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 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...
Quiz: What's wrong with the following code?
The following C# code has the goal of enabling managed code to call CreateDC , but it's incorrect. Calling all Interop aficionados... Can you see what's wrong? using System; using System.Runtime.InteropServices; internal class DeviceContext { [DllImport("gdi32.dll",
Read More...
Search
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