0

It seems like the TaskScheduler.TaskScheduler type from the 'TaskScheduler' COM type library (v1.1) does not actually implement IDisposable. Should we call Marshal.ReleaseComObject on it instead, or what?

Tim Lovell-Smith
  • 15,310
  • 14
  • 76
  • 93
  • Possible dupe of https://stackoverflow.com/questions/7467632/why-dont-com-object-use-idisposable – Tim Lovell-Smith May 20 '19 at 18:39
  • 1
    I looked at it once, they didn't make it easy to do the simple thing. Very broad object model, but the objects themselves are probably very small. You can try ReleaseComObject but I seriously doubt you'll notice, either because you forgot one or very little memory gets released. Just do nothing, the garbage collector takes care of it. If it does matter then [just help it](https://stackoverflow.com/a/25135685/17034). – Hans Passant May 20 '19 at 20:02

0 Answers0