matjacques / LightjamsSpout

COM wrapper for Spout - Realtime video sharing framework for Windows - making it usable in c# and .Net in general
8 stars 3 forks source link

C#调用LightjamsSpout接收器,进程用上几十秒,进程异常崩溃(0xc0000409) #9

Open worm128 opened 5 months ago

worm128 commented 5 months ago

d8b8f9ae6781b0efdd8a169c8b3620209cead40b_2_1380x776 我已经完成了最终效果,但是LightjamsSpout有个问题,用上几秒程序就会崩掉,我排除代码发现是在 m_receiver.ReceiveImage(m_buffer, LightjamsSpoutLib.EPixelFormat.RGB); 一直循环接收图片帧,时间长了就会导致程序崩掉 ac36512b48eb871acd08ddb09865f0ef5a796178 可以看到整个进程用上几十秒,就会突然异常崩溃退出,我在C#也没捕获到异常代码 程序“[23812] YinmeiWindow.exe”已退出,返回值为 3221226505 (0xc0000409)。

worm128 commented 5 months ago

1、排除发现崩溃代码在接受器,接受字节流的时候出现 图片

2、连接代码如下 图片