xna - Playing a Video (MSDN Tutorial) -
when trying example on http://msdn.microsoft.com/en-us/library/dd904198(v=xnagamestudio.40).aspx program crashes on
line 69: "player.play(video);"
error message: "an unhandled exception of type 'system.invalidoperationexception' occurred in microsoft.xna.framework.dll
additional information: unexpected error has occurred."
i did not change single character in code, used files came out of videoplayback_4_0.zip folder. (can directly downloaded http://msdn.microsoft.com/en-us/library/dd904198(v=xnagamestudio.40).aspx)
i have read in other forums people experiencing same problem, not find usable solution. know causes problem , how fix it?
stack trace microsoft.xna.framework.dll!microsoft.xna.framework.helpers.throwexceptionfromerrorcode(microsoft.xna.framework.errorcodes error) + 0x3d bytes microsoft.xna.framework.video.dll!microsoft.xna.framework.media.videoplayer.play(microsoft.xna.framework.media.video video) + 0xb7 bytes videoplayback.exe!videoplayback.game1.update(microsoft.xna.framework.gametime gametime) line 69 + 0x1a bytes microsoft.xna.framework.game.dll!microsoft.xna.framework.game.tick() + 0x4f0 bytes
the codex problem. reinstalling windows resolved issue.
Comments
Post a Comment