Skip to content

Remove errorneous Marshal.GetFunctionPointerForDelegate#2

Open
Reimnop wants to merge 1 commit intospace-wizards:wizardsfrom
Reimnop:patch-1
Open

Remove errorneous Marshal.GetFunctionPointerForDelegate#2
Reimnop wants to merge 1 commit intospace-wizards:wizardsfrom
Reimnop:patch-1

Conversation

@Reimnop
Copy link
Copy Markdown

@Reimnop Reimnop commented Apr 26, 2026

Marshal.GetFunctionPointerForDelegate here causes an InvalidCastException as it tries to cast an IntPtr to a Delegate internally.

Just pass the actual pointer, no Marshal needed.

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