Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5938913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:45:09+00:00 2026-05-22T15:45:09+00:00

(Relating to an earlier question of mine: Playing a Video (MSDN Tutorial) ) I

  • 0

(Relating to an earlier question of mine: Playing a Video (MSDN Tutorial))

I have the following problem: When I’m trying to read the state of a XNA VideoPlayer object I get an CrossThreadMessagingException. Meaning, I’m trying to read from a different thread. This seems to be not allowed (I have no idea how threads work in C# internally 🙂

Any ideas on how to fix this? (Is there a way to tell the VideoPlayer object to write in a buffer or something?)

Code:

protected override void Update(GameTime gameTime)
{
    // Allows the game to exit
    if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
        this.Exit();

    if (player.State == MediaState.Stopped)  //Causes the exception
    {
        player.IsLooped = true;
        player.Play(video); //Causes the "mysterious" crash
    }

    // ...
}

Error Message:

player.State = 'player.State' threw an
exception of type
'Microsoft.VisualStudio.Debugger.Runtime.CrossThreadMessagingException'

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:45:09+00:00Added an answer on May 22, 2026 at 3:45 pm

    Yeah well it’s apparently not just this him having the issue as I have the exact same problem , works fine on my computer, port to the 360 and “BANG” “CRASH” “BOOM”. I’m working on it in other forums and found this while searching for an answer.

    Jason

    Sylven Game Development

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Relating to my earlier question , I want to ensure all the child objects
I have this question relating to Lucene. I have a form and I get
I have a question relating to alignment in C/C++. In Determining the alignment of
Following on from a previous question relating to heap usage restrictions , I'm looking
I have a question relating to the usage of this. Suppose I have two
Relating to a previous question of mine I've successfully interposed malloc , but calloc
I have a question out of curiosity relating to checking for memory leaks. Being
I have a question relating to the output of a program. def writeOutput(): output.write(str(gallons)
I have a question relating to the use of an Initialization Vector in AES
two relating question: I have a table that is in use in a production

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.