You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The NativeThread class is just a stub (everything throws NotImplementedException).
When enumerating managed threads, I need to filter out these NativeThread objects, because they don't actually do anything but throw. Unfortunately, I don't see a good way to do it other than reflection:
foreach( var dac in proc.ClrRuntimes )
{
var t = dac.Threads.Where( ( x ) => x.OSThreadId == Tid ).FirstOrDefault();
if( (null != t) && !(t.GetType().Name.Contains( "NativeThread" )) )
list.Add( t );
}
What's the plan for this class--will it eventually be filled in? Or if they are only ever meant to be a placeholder, should there be a non-reflection way to recognize them?
The text was updated successfully, but these errors were encountered:
The NativeThread class is just a stub (everything throws NotImplementedException).
When enumerating managed threads, I need to filter out these NativeThread objects, because they don't actually do anything but throw. Unfortunately, I don't see a good way to do it other than reflection:
What's the plan for this class--will it eventually be filled in? Or if they are only ever meant to be a placeholder, should there be a non-reflection way to recognize them?
The text was updated successfully, but these errors were encountered: