Skip to content

Can't pass a null reference in BeginPopupModal #214

Closed
@NogginBops

Description

@NogginBops

I've found a problem where I want to call BeginPopupModal like this:

ImGui::BeginPopupModal(label, nullptr, flags)

which is possible by doing ref Unsafe.AsRef<bool>(null) in an unsafe context but the marshalling done in this library dereferences that reference which causes a NullRefernceException.

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