[monoxna]

11 views
Skip to first unread message

Postremus

unread,
Jan 18, 2012, 1:42:28 AM1/18/12
to MonoXNA
Hi,

when I try to start a simple Test with Linux, written in C# and
monoxna, I get an error like this:

** (UniTTT.TestXNA.exe:3844): WARNING **: The class
System.Collections.ObjectModel.Collection`1 could not be loaded, used
in mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089

My Code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace UniTTT.TestXNA
{
public class Game1 : Game
{
SpriteBatch spriteBatch;
Texture2D tex;
GraphicsDeviceManager graphics;

public Game1()
{
graphics = new GraphicsDeviceManager(this);
}

protected override void Initialize()
{
spriteBatch = new SpriteBatch(base.GraphicsDevice);
tex = new Texture2D(GraphicsDevice, 2, 2);
tex.SetData<Color>(new Color[] { Color.White });
base.Initialize();
}

protected override void Draw(GameTime gameTime)
{
spriteBatch.Begin();
spriteBatch.Draw(tex, new Rectangle(0, 0, 500, 500),
Color.Red);
spriteBatch.End();
base.Draw(gameTime);
}
}

The Output should be something like this (screenshoot form Windows):
http://dl.dropbox.com/u/46071056/UniTTT.TestXNA_Output.PNG

How can I solve the problem?

best greetings
Postremus

lavima

unread,
Jan 19, 2012, 6:08:46 PM1/19/12
to MonoXNA
Please register this as an issue in the google code page. Someone will
hopefully be able to replicate your problem and provide you with a
solution.

-lavima

Postremus

unread,
Feb 7, 2012, 10:06:21 AM2/7/12
to MonoXNA
Problem is solved.
I've used corupted .dll's.


best grettings

Postremus
Reply all
Reply to author
Forward
0 new messages