Skip to content

Destructor Not Being Called #1414

Open
Open

Description

I tried to use Destructor in a simple class and I found It's not calling class Destructor when object goes outside the scope but I tried the same approach with IDisposable and it worked fine if you need the code example let me know but it was kinda weird

Activity

  1. azizbek-abdurahmonov commented on Nov 21, 2023

    @azizbek-abdurahmonov

    Assalomu Alaykum! Can you send me your code?

  2. WeihanLi commented on Jan 2, 2024

    @WeihanLi

    The deconstructor may not be called immediately, it may relate to GC processing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions