hello,

I work with XNA 4.0 and in my project I keep getting the OutOfMemoryException while the game runs perfect on my college computer which is much much worse than my own.
I have 6gb of ram and a GTX 460 video card. I've tested the code on several other (worse/older) computers and it runs fine. Does anyone have an idea what this could be?

Thanks,

Robert

Would you mind showing us your code, the one you think it might cause problems?

Here is some good article about this problem, read it, it might give you an idea.

Article suggests memory fragmentation might be a bit of a problem.

Personally I'm inclined to ignorantly suggest it might actually be a stack overflow, check the project options--you might be able to increase the size of the stack for your program (not guaranteed to fix anything).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.