Attempted to read or write protected memory on player stop/dispose
Hello everybody ! :)
I made a quick dotnet core project to test libvlcsharp, with 2 wpf windows. The first window lists links from a m3u file. And with a play button, it opens a second window with libvlcsharp to play the video. When I click on a play or stop button in the second window, everything works fine. But when I close the window and call the dispose function, an error occurs:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
I have enabled debugging of the nativ code, and I have more information about this error :
Exception levée à 0x00007FFB85BFE928 (libvlccore.dll) dans testiptvapp.exe : 0xC0000005 : Violation d'accès lors de la lecture de l'emplacement 0x0000000000000078.
I'm on Windows 10. I made an example on github very simple. All you need to do is to execute and click on "Lecture", on the second windows press play, when the video show up close the window.
I use the latest version of libvlc and libvlcsharp. https://github.com/umadgen/testiptvapp
Thank's in advance :)