Adam Nathan's Blog
Discussing topics that usually relate to .NET, such as Popfly, Silverlight, WPF, or COM Interop.
July 2003 - Posts
CLR SPY and Customer Debug Probes: The Thread Changing Apartment State Probe
The last blog touched on apartment states of managed threads, which the CLR tracks for COM interoperability purposes. But if an application changes the apartment state of a thread being tracked by the CLR (via unmanaged code or direct calls to CoUninitialize/CoInitialize),
Read More...
Gotcha with STAThreadAttribute and Managed C++
Managed thread objects have an ApartmentState property that can be set to STA or MTA. But setting this property on the main thread doesn't work reliably because the CLR might set the apartment state to MTA (by calling CoInitializeEx (NULL, COINIT_MULTITHREADED))
Read More...
CLR SPY and Customer Debug Probes: The Disconnected Context and Unmarshalable Interface Probes
When managed code interacts with COM objects via RCWs, the CLR handles the COM plumbing for you. An important part of this plumbing involves marshaling wrapped interface pointers across contexts. When a COM interface pointer needs to be marshaled from
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