Sign in
Adam Nathan's Old Blog
Please visit http://adamnathan.net instead!
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
Hearts
Managed Code
Misc
Non-Pro Tools
Pages
Popfly
Quizzes
Silverlight
Silverlight Unleashed
WCF
WP7
WPF
WPF Unleashed
Archive
Archives
October 2010
(2)
July 2010
(1)
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
(13)
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
(6)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Adam Nathan's Old Blog
Quiz: What's wrong with the following code?
Posted
over 10 years ago
by
Adam Nathan
36
Comments
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...
Adam Nathan's Old Blog
Introducing Customer Debug Probes and CLR SPY
Posted
over 10 years ago
by
Adam Nathan
16
Comments
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...
Adam Nathan's Old Blog
CLR SPY and Customer Debug Probes: The PInvoke Calling Convention Mismatch Probe
Posted
over 10 years ago
by
Adam Nathan
4
Comments
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...
Adam Nathan's Old Blog
TechEd Bloggers
Posted
over 10 years ago
by
Adam Nathan
3
Comments
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...
Adam Nathan's Old Blog
size_is in managed code?
Posted
over 10 years ago
by
Adam Nathan
2
Comments
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...
Adam Nathan's Old Blog
Blogging troubles resolved
Posted
over 10 years ago
by
Adam Nathan
2
Comments
I've fixed this posting, so read on!
Adam Nathan's Old Blog
Structures with embedded string fields
Posted
over 10 years ago
by
Adam Nathan
2
Comments
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...
Adam Nathan's Old Blog
CLR SPY and Customer Debug Probes: The Marshaling Probe
Posted
over 10 years ago
by
Adam Nathan
1
Comments
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...
Page 1 of 1 (8 items)