Skip to content

Commit 97d4569

Browse files
committed
fix: Replace unsupported code with placeholder
1 parent e0e0d3f commit 97d4569

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Source/RunActivity/Viewer3D/Processes/WatchdogProcess.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)