AccessViolationException when using level filter and AddSignalWatch
Hello
I get AccessViolationException in the small test project.
Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Gst.MiniObject.gst_mini_object_unref(IntPtr raw)
at Gst.MiniObject.FinalizerInfo.Handler()
at GLib.Timeout.TimeoutProxy.Handler()
at GLib.MainLoop.g_main_loop_run(IntPtr loop)
at GLib.MainLoop.Run()
at Levels.TestLevels.PrintLevelsThrows(String fileName) in ..\Levels\Program.cs:line 129
at Levels.Program.Main(String[] args) in ..\Levels\Program.cs:line 15
The test is attached.
There are two methods: PrintLevelsThrows and PrintLevelsOk.
PrintLevelsOK uses TimedPopFiltered on the bus and works OK.
PrintLevelsThrows uses AddSignalWatch on the bus and throws AccessViolationException when the level plugin is included.
Compile with USE_LEVEL to include level and see the exception.
Windows 10 GstSharp is NuGet package (1.14.2) GStreamer is version 1.14.4, 32bit.
Hope you can fix it,
Cheers, Tom