AccessViolationException when calling SetSkyBox()

ScottWarren

06-06-2010 21:56:52

Hi People,

I have come up with a problem since moving to the 1.4.8 version. Basically i have a timer that fires a call which updates the scene and changes the SkyBox from either a day one to a night one. However in the new version it throws up an access violation on this line, mgr.SetSkyBox(true, "Examples/CloudyNoonSkyBox");

Commenting this part of my code out allows the program to continue however now when an update happens and the programs require a new object to be added it also causes the same error.

If you require more information on the error etc please can you explain how i get it. I am using VS2008 Standard Edition and programming in C#

Some info here;

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

at Mogre.SceneManager.SetSkyBox(Boolean enable, String materialName) in d:\cubicalminds\mogreworld\mogre\mogre\src\auto\mogrescenemanager.cpp:line 1062
at TheDarkAgesReturn.MainOgreWindow.DisplayScene() in C:\Projects\TheDarkAgesReturn2008NET3.5V1.5\TheDarkAgesReturn\ClientUI\MainOgreWindow.cs:line 375
at TheDarkAgesReturn.MainOgreWindow.GraphicsDataTimerEventProcessor(Object source, ElapsedEventArgs e) in C:\Projects\TheDarkAgesReturn2008NET3.5V1.5\TheDarkAgesReturn\ClientUI\MainOgreWindow.cs:line 56
at System.Timers.Timer.MyTimerCallback(Object state)

I am extreamly greatful to any help you can provide.

Thanks

Scott