Adam Nathan's Blog
Discussing topics that usually relate to .NET, such as Popfly, Silverlight, WPF, or COM Interop.
May 2003 - Posts
TechEd Bloggers
Tomorrow morning I'm headed for Dallas, Texas to speak at TechEd 2003. Sonja Keserovic and I are giving the following talk: Interoperating with Unmanaged Code (DEV341) Room: D166 Time Slot: Wed, June 4 10:15 AM-11:30 AM Moving to the .NET Framework does
Read More...
CLR SPY and Customer Debug Probes: The PInvoke Calling Convention Mismatch Probe
Defining a PInvoke signature and using DllImportAttribute correctly can be difficult to do, and you normally get little-to-no diagnostic information if you make a mistake. Some mistakes that can be made with PInvoke would be impossible for the CLR to
Read More...
Blogging troubles resolved
I've fixed this posting, so read on!
Read More...
CLR SPY and Customer Debug Probes: The Marshaling Probe
As promised, here's my first entry with more details about Customer Debug Probes and CLR SPY. The Marshaling probe is the easiest one to understand and great for experimentation since it's the only one that doesn't report on error/warning conditions.
Read More...
Introducing Customer Debug Probes and CLR SPY
Version 1.1 of the .NET Framework introduces a handy feature called Customer Debug Probes (CDP). These probes enable you to find and diagnose difficult bugs lurking in managed code, even in a production environment. I'll share the details of each probe
Read More...
Structures with embedded string fields
Tuesday's quiz used character arrays to represent string fields of the DEVMODE structure. Why not define them as strings, which would be more convenient to manipulate in managed code? If you define a structure field as a string, it is marshaled as a pointer
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...
size_is in managed code?
IDL has a size_is attribute (as well as length_is, first_is, last_is, max_is, ...) that decorates a C-style array with enough information for it to be marshaled. Without such an attribute, the array would not be distinguishable from a pointer to a single
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