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

  • SEARCH
  • Home
  • 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 9266821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:24:20+00:00 2026-06-18T14:24:20+00:00

With XNA 4.0, I tried to create multiple content managers for different game screens

  • 0

With XNA 4.0, I tried to create multiple content managers for different game screens by something like this:

ContentManager myManager = new ContentManager(Content.ServiceProvider, Content.RootDirectory);

with Content being the original ContentManager the system provides me with.

However, it didn’t work out like I had expected. If I call myManager.Unload() then everything loaded with the original ContentManager are unloaded as well. It was as if the two held the same data.

How can I seperate them out and make unloading of one manager not affect the other?

  • 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-06-18T14:24:22+00:00Added an answer on June 18, 2026 at 2:24 pm

    There is nothing wrong with the code you have posted. Personally I use Game.Services – but Content.ServiceProvider is fine too – they both point at exactly the same object.

    The bug must be elsewhere in your code. Are you absolutely sure you are using the correct content manager in each case?

    Have you tried stepping through your code in the debugger? And making use of the “Make Object ID” function? (In the context menu for watch variables or variables that you mouse-over.)

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

Sidebar

Related Questions

I tried this tutorial but I get multiple error messages. http://what-when-how.com/xna-game-studio-4-0-programmingdeveloping-for-windows-phone-7-and-xbox-360/2d-avatars-using-render-targets-xna-game-studio-4-0-programming/ I just want
Okay so I have this game I'm working on, I'm new to XNA (I'm
i'm getting started with XNA game development and tried to run tutorail app on
I am new to XNA, and I am creating a simple game. Sorry that
I'm using VS2010 express to create a game built with xna . I'm trying
I need load XNA.Texture2D to PictureBox. i've tried this: http://www.gamedev.net/community/forums/viewreply.asp?ID=3224621 but it doesn't work.
I'm new to XNA and would like to develop a light-weight 2D engine over
I'd like to make collisions in my XNA project and I tried using BoundingBoxes.
I'm developing a game using XNA 4.0 library (not using game class and ContentManager)
I tried this tutorial: http://wellroundedgeek.com/post/2011/01/25/Simple-XNA-Cross-Platform-Settings-Manager.aspx But I have difficulties to call the LoadSettings() method.

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.