<HTML><BODY><div><div>Hi, Nicolas! Thank you for reply!</div><div> </div><div>Shame on me, but I’m not aware of this functionality. Can you provide more info about this feature?</div><div> </div><div>Thanks in advance.<br> </div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;"><div id=""><div class="js-helper js-readmsg-msg"><div><div id="style_16947878201980395275_BODY"><div class="cl_061723"><div> </div><div>I believe recent C# GC allow you to do explicit unref (nullifying the object) to workaround the issue. The GC have no idea about the size of the object/buffer, so it does not prioritize it.</div><div> </div><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"><div id=""><div class="js-helper_mr_css_attr js-readmsg-msg_mr_css_attr"><div><div id="style_16947347981376795412_BODY_mr_css_attr"><div class="mail-quote-collapse">><br>> Any ideas how to achieve that?<br>><br>> Thanks in advance.<br>><br>><br>> Appsink code:<br>><br>> var appSink = new AppSink("appsink_{CaptureConfig.CameraId}");<br>> appSink.NewSample += AppSinkNewSample;<br>> appSink.EmitSignals = true;<br>><br>> private void AppSinkNewSample(object o, NewSampleArgs args)<br>> {<br>> if (o is AppSink aps)<br>> {<br>> using (var sample = aps.PullSample())<br>> {<br>> using (var buf = sample.Buffer)<br>> {<br>> SomeStuff(buf);<br>> }<br>> }<br>> }<br>> }<br>><br>><br>></div></div></div></div></div></blockquote><div> <div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>С Уважением,<br>Шаров Антон</div></div></div><div> </div></div></blockquote><div> </div><div> </div></div></div></div></div></div></blockquote> <div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>С Уважением,<br>Шаров Антон</div></div></div><div> </div></div></BODY></HTML>