Access violation errors in Component Samples

To get live images from camera, I tried to run VideoViewer, MediaLiveViewer and mediaRGBVideoEnchancementLive examples which are in Component Samples. But when the camera connection is done, I get an Access violation error and the program closes.

Do you know why this error occurs and what would be the solution for this?

(I’m using MIP SDK 2020 R2)

We tried to reproduce the issue with 2020 R2 SDK, but could not.

Could you please provide some more details regarding the exception, operating system? Are you using VM or physical machine? Which version and edition of XProtect are you using?

I am using Windows 10 and Visual studio 2017. I build the project with .Net Framework 4.7.2

Are you using VM or physical machine?

Physical machine.

Which version and edition of XProtect are you using?

Essential+ 2020 R2

Could you send us the exception that you got – including stack trace, please?

I get Access violation at _imageViewerControl1.Connect(); method. I could not get exception because I could not find the source of that method.

Please find the error message below:

The program ‘[13772] VideoViewer.exe’ has exited with code -1073741819 (0xc0000005) ‘Access violation’.

This is just my curiosity, are you using the same machine as this question?

https://developer.milestonesys.com/s/question/0D53X00006wTiuZSAS/tcpvideoviewer-example-recording-server-did-not-work

Yes , both same machine.

Can you get dump files send them to us? Please see this link - https://docs.microsoft.com/en-us/visualstudio/debugger/using-dump-files?view=vs-2019