MogreSDK Sample Browser Fail [SOLVED]

CodeKrash

31-12-2010 21:52:57

when a sample starts, it immediately "stops working"

Description:
Stopped working

Problem signature:
Problem Event Name: APPCRASH
Application Name: Mogre.Demo.Fresnel.exe
Application Version: 1.0.0.0
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.2.0.0.256.1
Locale ID: 1033

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt


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

smiley80

01-01-2011 11:36:36

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

CodeKrash

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.

CodeKrash

02-01-2011 13:04:11

System.BadImageFormatException was unhandled
Message: Could not load file or assembly 'Mogre, Version=1.7.1.0, 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?

CodeKrash

02-01-2011 13:07:56

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

CodeKrash

02-01-2011 13:14:38

Confirmed!

To Fix this I had to:

open the samples solution
set to release/x86
rebuild solution

Beauty

07-01-2011 22:19:22

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

JuggernautOGRE

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