Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destructor Not Being Called #1414

Open
Ibrahimogod opened this issue Nov 7, 2023 · 2 comments
Open

Destructor Not Being Called #1414

Ibrahimogod opened this issue Nov 7, 2023 · 2 comments

Comments

@Ibrahimogod
Copy link

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

@azizbek-abdurahmonov
Copy link

Assalomu Alaykum! Can you send me your code?

@WeihanLi
Copy link

WeihanLi commented Jan 2, 2024

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants