MogreSDK Sample Browser Fail [SOLVED]


31-12-2010 21:52:57

when a sample starts, it immediately "stops working"

Stopped working

Problem signature:
Problem Event Name: APPCRASH
Application Name: Mogre.Demo.Fresnel.exe
Application Version:
Application Timestamp: 4d1e4fd2
Fault Module Name: KERNELBASE.dll
Fault Module Version: 6.1.7600.16385
Fault Module Timestamp: 4a5bdfe0
Exception Code: e0434f4d
Exception Offset: 000000000000aa7d
OS Version: 6.1.7600.
Locale ID: 1033

Read our privacy statement online:

If the online privacy statement is not available, please read our privacy statement offline:

My system is: windows 7 ult - 64bit, 4gb ram, radeon HD 4870 1gb


01-01-2011 11:36:36

They should work if you rebuild them with 'BuildSamplesX86.cmd'.


02-01-2011 13:00:55

unfortunately I did do that, and I'm sorry I didn't see any real debugging info to copy/paste.


02-01-2011 13:04:11

System.BadImageFormatException was unhandled
Message: Could not load file or assembly 'Mogre, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Perhaps it needs to be x86 instead of Any CPU?


02-01-2011 13:07:56

mogreWin.InitMogre(); that is when the bad image exception occurs


02-01-2011 13:14:38


To Fix this I had to:

open the samples solution
set to release/x86
rebuild solution


07-01-2011 22:19:22

Thanks for your bug report.
I posted it in the SDK development thread.


13-07-2012 21:12:09

:D Thanks for the solution guys, you all saved my day. I was really stuck with running the demo files and lost all hope when I suddenly found this thread. :D :D :D :D :D :D :D :D :D :D :D