Okay, I've tryed this. But it still crashes. I've found out, when I build the Lock function like this, void LockVideo(void* Data, void* PixelData) sometimes it plays a few frames an then it chrashes, or the crash happens direct after the startup before playing anything. Windows says the crash appear...