Skip to content

Deterministic call to oni_destroy_ctx() in clroni #42

Description

@jonnew

It seems that, within clroni, ContextHandle.ReleaseHandle() is called by the GC when the reference count goes to 0 marking the Handle as invalid. This means that oni_destroy_ctx() is called non-deterministically. Since SafeHandleZeroOrMinusOneIsInvalid implements IDisposable, we wonder why oni_destroy_ctx() cannot be called deterministically. When is Dispose() called in this case? Is it also linked to the reference count and Handle invalid state?

Activity

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions