From 33c41a50a5c8e74b812207538586f033fc71ca8a Mon Sep 17 00:00:00 2001 From: Justin Kim Date: Mon, 1 Jan 2018 22:59:02 +0900 Subject: [PATCH] DynamicSignal: Add UnmanagedFunctionPointer to GClosureMarshal Without the convention, Gst.Object.Connect causes AccessViolationException. https://bugzilla.gnome.org/show_bug.cgi?id=792096 --- sources/custom/DynamicSignal.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/custom/DynamicSignal.cs b/sources/custom/DynamicSignal.cs index 47998f64ab..42361587e5 100644 --- a/sources/custom/DynamicSignal.cs +++ b/sources/custom/DynamicSignal.cs @@ -32,6 +32,7 @@ using System.Collections; namespace Gst { + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] delegate void GClosureMarshal (IntPtr closure, ref GLib.Value retval, uint argc, IntPtr argsPtr, IntPtr invocation_hint, IntPtr data);