[Bug 788132] New: DynamicSignal: use NativeType property instead of doing unsafe pointer trickery

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Sep 25 13:23:15 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=788132

            Bug ID: 788132
           Summary: DynamicSignal: use NativeType property instead of
                    doing unsafe pointer trickery
    Classification: Platform
           Product: GStreamer
           Version: unspecified
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-sharp
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: erlend at pexip.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 360354
  --> https://bugzilla.gnome.org/attachment.cgi?id=360354&action=edit
patch

The Microsoft C# (csc) compiler doesn't seem to like the "dereferencing"
of managed types very much (I'm using Microsoft (R) Visual C# Compiler version
2.3.2.62019 from VS 2017). It complains with error CS0208 "Cannot take the
address of, get the size of, or declare a pointer to a managed type
('Object.GTypeInstance')".

Using the GLib.Object.NativeType property should return the same result.
However, this property actually has internal protection level, so glib-sharp
must be compiled with an [assembly: InternalsVisibleTo("gstreamer-sharp")]
directive for it to be accessible to gstreamer-sharp (when compiling with the
MS C# compiler). But then again the types references in the previous
unsafe-approach (GLib.Object.GTypeInstance etc.) also had internal visibility
only.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list