+
Skip to content

Conversation

badcel
Copy link
Member

@badcel badcel commented May 10, 2025

The "OnDispose" method was only called if a user explicitly called "Dispose()". If an object got collected via the GC the "OnDispose" method was not called, which is probably not what a user would expect.

Therefore, the "OnDispose" method got replaced by an "OnReleaseHandle" method for typed records which gets always called if a typed record gets freed.

This affects the debug message of a closure which indicates the collection of a closure if GirCore is compiled in debug mode.

  • I agree that my contribution may be licensed either under MIT or any version of LGPL license.

The "OnDispose" method was only called if a user explicitly called "Dispose()". If an object got collected via the GC the "OnDispose" method was not called, which is probably not what a user would expect.

Therefore, the "OnDispose" method got replaced by an "OnReleaseHandle" method for typed records which gets always called if a typed record gets freed.

This affects the debug message of a closure which indicates the collection of a closure if GirCore is compiled in debug mode.
@badcel badcel force-pushed the remove-public-ondispose branch from c63456e to 58a5ff6 Compare May 10, 2025 20:05
@badcel badcel merged commit 07edd33 into main May 10, 2025
3 checks passed
@badcel badcel deleted the remove-public-ondispose branch May 10, 2025 20:17
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

Successfully merging this pull request may close these issues.

1 participant

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载