Inquiry about the death of GstSharp Streaming View

Hello, I’m writing to inquire about the current phenomenon of streaming code dying while developing a VMS client.

Currently, the foundation we developed was implemented using a source called Gst Sharp, and based on a source called gstreamer-d3d11-overlay, we implemented rstp image view.
The problem is that when you’re doing a lot of footage on this test program, or turning it on and off, the program dies with an exception called Access Violation. Can you tell me what needs to be done to address this issue?

Before the program dies, the Freezing phenomenon appears, and the program turns off with the message below.

(VMS.Test.Client.exe:1732): GLib-CRITICAL **: 14:34:23.869: Source ID 5788 was not found when attempting to remove it

(VMS.Test.Client.exe:1732): GLib-CRITICAL **: 14:34:23.869: Source ID 5787 was not found when attempting to remove it

(VMS.Test.Client.exe:1732): GLib-CRITICAL **: 14:34:23.869: Source ID 5790 was not found when attempting to remove it

(VMS.Test.Client.exe:1732): GLib-CRITICAL **: 14:34:23.869: Source ID 5789 was not found when attempting to remove it

(VMS.Test.Client.exe:1732): GLib-CRITICAL **: 14:34:23.869: Source ID 5792 was not found when attempting to remove it

(VMS.Test.Client.exe:1732): GLib-CRITICAL **: 14:34:23.869: Source ID 5791 was not found when attempting to remove it

(VMS.Test.Client.exe:1732): GLib-CRITICAL **: 14:34:23.870: Source ID 5793 was not found when attempting to remove it
Thread '[Thread Extinct]' (14064) has ended (code: 0 (0x0)).
Thread '[Thread Disappeared]' (8800) has ended (code: 0 (0x0)).
Thread '[Thread Disappeared]' (3344) has ended (code: 0 (0x0)).
Thread '[Thread Extinct]' (13556) has ended (code: 0 (0x0)).
Thread '[Thread Extinct]' (13604) has ended (code: 0 (0x0)).
Thread '[Thread Extinct]' (15384) has ended (code: 0 (0x0)).

(VMS.Test.Client.exe:1732): GStreamer-CRITICAL **: 14:34:26.080: gst_mini_object_unref: assertion 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed
Thread '[Thread Extinct]' (14048) has ended (code: 0 (0x0)).
Thread '[Thread Extinct]' (21696) has ended (code: 0 (0x0)).
Thread '[Thread Disappeared]' (4604) has ended (code: 0 (0x0)).
Thread '[Thread Extinct]' (26148) has ended (code: 0 (0x0)).
Thread '[Thread Disappeared]' (2423) has ended (code: 0 (0x0)).
Thread '[Thread Extinct]' (1364) has ended (code: 0 (0x0)).
Thread '[Thread Extinct]' (24992) has ended (code: 0 (0x0)).
Thread '[Thread Extinct]' (4644) has ended (code: 0 (0x0).
Thread '[Thread Extinct]' (16856) has ended (code: 0 (0x0)).
Thread '[Thread Extinct]' (17284) has ended (code: 0 (0x0)).

(VMS.Test.Client.exe:1732): GStreamer-CRITICAL **: 14:34:27.371: gst_caps_is_empty: assertion 'GST_IS_CAPS (caps)' failed

(VMS.Test.Client.exe:1732): GStreamer-CRITICAL **: 14:34:27.371: gst_caps_is_any: assertion 'GST_IS_CAPS (caps)' failed

(VMS.Test.Client.exe:1732): GStreamer-CRITICAL **: 14:34:27.371: gst_caps_is_fixed: assertion 'GST_IS_CAPS (caps)' failed
The program '[1732] VMS.Test.Client.exe' has exited (code: 3221225477 (0xc0000005) 'Access violation').

If anyone knows about this, I would like to ask for your help.

Thank you.