Are CancellationToken's bleeding memory?

Marcin 1 Reputation point
2022-09-14T19:54:42.617+00:00

I hope this isn't breaking any rules regarding this forum, but the question was already asked here, and I was hoping someone in this forum could take an interest in it.

Much thanks ahead of time.

PS. I think I may have posted this question to the wrong msdn forum previously, for which, my apologies.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,843 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Karen Payne MVP 35,401 Reputation points
    2022-09-15T09:08:16.33+00:00

    Sure it's possible but it will depend on a) the framework version b) what other code you are interacting with c) things like lifetime for the object in question.

    If you feel that you have an issue with leaks I would recommend providing a minimal reproducible example and/or using the feedback button in Visual Studio report the issue.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.