File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Source/RunActivity/Viewer3D/Processes Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,10 @@ internal void Step()
276276
277277 StackTrace GetStackTrace ( )
278278 {
279+ #if NET5_0_OR_GREATER
280+ // TODO: https://github.com/microsoft/clrmd is likely the best option to reimplement this in .NET 5+
281+ throw new ThreadStateException ( "This is not implemented" ) ;
282+ #else
279283 // Yes, I know this is deprecated. Sorry. This code needs to collect the stack trace from a *different*
280284 // thread and this seems to be the only option - three seperate, deprecated APIs. :(
281285#pragma warning disable 0618
@@ -289,6 +293,7 @@ StackTrace GetStackTrace()
289293 Thread . Resume ( ) ;
290294 }
291295#pragma warning restore 0618
296+ #endif
292297 }
293298
294299 bool StacksAreWaits ( )
You can’t perform that action at this time.
0 commit comments