ArgumentOutOfRangeException

Apr 2, 2009 at 10:39 PM
in my render section I put in the code

if

 

(vid.IsPlaying)

 

{

 

spriteBatch.Begin();

spriteBatch.Draw(vid.CurrentTexture,

new Vector2(1010), Color.White);

 

spriteBatch.End();

}

in  he line that is bolded above i am getting a ArgumentOutOfRangeException was unhandled

I can't seem to figure out what this means

Thanks

Coordinator
Apr 3, 2009 at 1:53 PM
Can you verify whether this same error occurs with the sample project included in the download?
  • If it does not occur, can you try including *your* video in the same and having it play that?
    • If the video plays successfully, then there is some piece of code or step that you are likely missing.  You should look at the sample and ensure that you are using the library the same way.
  • If it *does* occur when playing the sample, please let me know and we'll go from there :-)
thanks,
Joel
Apr 3, 2009 at 2:21 PM
Must have been an issue with my code.  Sorry I should have checked the sample first.  However,  Now I am getting a color issue.  The video loads but all of the colors are pixelated and look like a infrared montitor.  I have put in a picture to show you.  This is the windows version I am not working on an XBOX version right now.  I'm just learning.