Home > Forum > Sometimes Getting ntdll.dll error code 0xc0000374 with MediaBlocks sdk

Sometimes Getting ntdll.dll error code 0xc0000374 with MediaBlocks sdk

today 08:37 (3 hours ago)
Nikola Bjelobaba wrote
Hi,

I've integrated your MediaBlocks SDK in my wpf app using the example you provided in your previous response, and so far, that worked well. But after porting that project to another pc, it sometimes crashes on startup with the error code shown above. (It crashes roughly once every 10 or 20 app executions). This only happens on this device, the same app on 2 other pcs runs without problems. Do you know what might cause this? I've tried using common fixes for ntdll found on the internet, but none of those seem to work.

I should also note that all 3 pcs use different rtsp Ip cameras as a source for the video. Could that be the cause of this issue?

I've attached the camera logs from an execution attempt where the app crashed because of the problem described above. I've also attached an example of how I startup and shutdown the camera for reference, in case the error happens due to my implementation.

Do you know what might cause this error?

Kind regards,
Nikola Bjelobaba
Reply
1 Answer
today 11:32 (49 mins ago)
Roman Miniailov agent wrote
Hi

I have two suggestions.

1. Check that audio is available for the camera before adding the audio renderer and connecting the audio part. You can use the RTSPSourceSettings information API for this.
2. Set latency to some higher but normal value like 100-200 ms, or use the default value for tests. If you have a 25 fps video, the duration of one frame is 40 ms. So, if you've set 20 ms, it's an incorrect value because it's less than one frame. It can be theoretically normal for 60fps and higher frame rates, but I suggest using a minimum of 100ms.