C# BasicTutorial6 doesn't work in Windows
Submitted by tom..@..il.com
Link to original bug (#796287)
Description
Created attachment 372254
Modified version which imports a correct dll and doesn't crash on unknown type.
Hello
BasicTutorial6.cs doesn't work in Windows.
It imports g_quark_to_string from the Linux library and throws when printing field information, because GstBitmask type is unknown.
Here's modified version. I have no idea how to make different DllImports for different platforms.
I have also wrapped the calls in the PrintField function, so that it shows an error message instead of crashing.
Hope it helps,
Tom
Attachment 372254, "Modified version which imports a correct dll and doesn't crash on unknown type.":
BasicTutorial6.cs
Version: 1.14.0