I used WpfSample as a core of application. I belive everything happens in PlayerCtrl class.
I divided the dispatcher's invoke to 2 parts. First I get the copy the bitmap from buffer, between I do some calculations on bitmap, then I draw bitmap on WriteableBitmap.
The problem is sometimes after 10-30 min of running (when my PC memory/processor usage is large) application crashes even though I set it up to log all the uncaught exceptions (nothing in logs).
One important thing is it crashes on the older PC, where I don't have VS installed and because of that I don't know where it happens. I'm sure it must be something with the video player because when I turn off the video stream it works fine.
Hello.
I used WpfSample as a core of application. I belive everything happens in PlayerCtrl class.
I divided the dispatcher's invoke to 2 parts. First I get the copy the bitmap from buffer, between I do some calculations on bitmap, then I draw bitmap on WriteableBitmap.
The problem is sometimes after 10-30 min of running (when my PC memory/processor usage is large) application crashes even though I set it up to log all the uncaught exceptions (nothing in logs).
One important thing is it crashes on the older PC, where I don't have VS installed and because of that I don't know where it happens. I'm sure it must be something with the video player because when I turn off the video stream it works fine.
Here's the code:
InitPlayback (part of it, rest is the same): http://pastebin.com/CRK5Bzw2
DrawFrame, GetFrame: http://pastebin.com/D8vZd1SD
Restart (Called by NoSignalProcessor): http://pastebin.com/uTgSEUTr
Thanks in advance
Please connect me in skype to resolve this issue/