Steven Behnke
Steven Behnke

Reputation: 3344

C++/CLI and C# Garbage collection before context switch

At one point in time I was searching MSDN and found an app config setting that would force a garbage collection prior to a native to managed boundary context switch. This would be useful for tracking down references that are improperly getting cleaned up before I meant them to. I cannot for the life of me remember what that option was, does it ring a bell for anyone?

Thanks!

Upvotes: 0

Views: 121

Answers (1)

Steven Behnke
Steven Behnke

Reputation: 3344

Of course a minute after I post the question I find the answer. It is the MDA or Managed Debugging Assistants: http://msdn.microsoft.com/en-us/library/d21c150d.aspx

Specifically this part: gcManagedToUnmanaged MDA.

Upvotes: 2

Related Questions