COM, STA, apartment, reentrancy, re-entrancy

1 February 2007 | 1 Comment

are you getting cyclic function call graphs in your STA (or multiple STAs) ?
so you’ve probably heard of re-entrancy.

if you’re re-entrancy are due to a COM call waiting on some handles (WaitForSingle/MultipleObject/s), you can replace it with

CoWaitForMultipleHandles


What this method does is wait for your handles, but also handles new COM calls (through a simple message pump), which is just fantastic.
If you have custom message processing, CoWaitForMultipleHandles will not execute this custom behavior, for more info on that look here: http://blogs.msdn.com/timng/archive/2006/09/06/743795.aspx
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Current
  • E-mail this story to a friend!
  • FriendFeed
  • HackerNews
  • LinkedIn
  • Netvibes
  • Ping.fm
  • Reddit
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks

One Response on “COM, STA, apartment, reentrancy, re-entrancy”

  1. maha says:

    Strange… I have 245 photos on my flickr account.

Leave a Reply