Mogre Error..

Sehlor

03-05-2009 17:15:05

I'm New At Mogre And Following:
http://www.ogre3d.org/wiki/index.php/Mo ... Tutorial_0
This tutorial but i'm going to crazy my first application is not working;
i saw the ogre's loading window and it gives me error:
http://img106.imageshack.us/img106/7233/runmogrerun.jpg

can anyone help me ? what i'm doing wrong;

my app code:

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Mogre;
using MogreFramework;

namespace OgreWin
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
try
{
OgreWindow win = new OgreWindow();
win.Go();
}
catch (Exception ex)
{
MessageBox.Show(OgreException.LastException.FullDescription,
"An Ogre exception has occurred!");
}
}
}
}


Regards

AndroidAdam

03-05-2009 19:52:53

Do you have service pack one of your IDE? Try installing the c runtime here

Do you have all of your dll's in your debug and release folder? Are all of your .cfg files pointing to correct paths?

Sehlor

03-05-2009 20:38:51

I'm using Visual Studio 2008 and Installed Redist Package
I Copied All Of .dll files to my Debug and Release folder

i copied all of .cfg files to my debug and release folder and my mogre installation
C:\Program Files\MogreSDK

my resource.cfg

# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=C:/Program Files/MogreSDK/Media/packs/OgreCore.zip

# Resource locations to be added to the default path
[General]
FileSystem=C:/Program Files/MogreSDK/Media
FileSystem=C:/Program Files/MogreSDK/Media/fonts
FileSystem=C:/Program Files/MogreSDK/Media/materials/programs
FileSystem=C:/Program Files/MogreSDK/Media/materials/scripts
FileSystem=C:/Program Files/MogreSDK/Media/materials/textures
FileSystem=C:/Program Files/MogreSDK/Media/models
FileSystem=C:/Program Files/MogreSDK/Media/overlays
FileSystem=C:/Program Files/MogreSDK/Media/particle
FileSystem=C:/Program Files/MogreSDK/Media/gui
FileSystem=C:/Program Files/MogreSDK/Media/DeferredShadingMedia
Zip=C:/Program Files/MogreSDK/Media/packs/cubemap.zip
Zip=C:/Program Files/MogreSDK/Media/packs/cubemapsJS.zip
Zip=C:/Program Files/MogreSDK/Media/packs/dragon.zip
Zip=C:/Program Files/MogreSDK/Media/packs/fresneldemo.zip
Zip=C:/Program Files/MogreSDK/Media/packs/ogretestmap.zip
Zip=C:/Program Files/MogreSDK/Media/packs/skybox.zip


My plugins.cfg
# Defines plugins to load

# Define plugin folder
PluginFolder=.

# Define plugins
Plugin=RenderSystem_Direct3D9_d
Plugin=RenderSystem_GL_d
Plugin=Plugin_ParticleFX_D
Plugin=Plugin_BSPSceneManager_d
Plugin=Plugin_OctreeSceneManager_d
Plugin=Plugin_CgProgramManager_d



my media.cfg
Mesh=ogrehead.mesh
Mesh=geosphere4500.mesh
Mesh=razor.mesh
Mesh=knot.mesh
Mesh=RZR-002.mesh
Mesh=geosphere8000.mesh
Mesh=sphere.mesh

CubeMap=cubescene.jpg
CubeMap=early_morning.jpg
CubeMap=cubemap.jpg
CubeMap=morning.jpg
CubeMap=cloudy_noon.jpg
CubeMap=evening.jpg
CubeMap=stormy.jpg
CubeMap=stevecube.jpg


My Release Folder (same as debug)
http://img408.imageshack.us/img408/9671/runplsmogre.jpg

raygeee

03-05-2009 21:09:01

You've got a lot of debug dlls in your release folder.
Be very cautious not to mix up release and debug dlls! All files with _d suffix are for release, the others without are for debug.
There are also dlls which have the same name for debug and release (like Mogre.dll) but which can't be mixed!
Also your plugins.cfg in debug has to point to _d files and the one in release has to point to those without _d.

Better reinstall Mogre since you might already have mixed up the dlls. It's very difficult to seperate them afterwards.
For testing Mogre, try running release first - try debug later (requires debug VC++ libraries).

AndroidAdam

04-05-2009 02:36:32

All files with _d suffix are for release, the others without are for debug.

You got that backwards bro, _d is for debug, those without are for release.

the _d stands for debug.

Sehlor

04-05-2009 15:25:13

Still Gives Same Error...
Can Someone Help Me Please ?

I've Downloaded MogreFramework from this url:
http://rs383.rapidshare.com/files/12921 ... mework.zip

Installed Visual C++ 2008 Redist Package
Installed SP1 For Visual Studio 2008

But Still Getting Same Error..

Sehlor

04-05-2009 15:34:19

Solved, Thanks.

AndroidAdam

04-05-2009 18:46:01

Was using the MogreFramework from that new link what fixed it?

Sehlor

04-05-2009 19:23:44

There is problem in my release folder config files i corrected them and mogre worked.
i'm using this MogreFramework while i start

Bekas

05-05-2009 20:07:06

Please add a [SOLVED] to the topic. (by editing your first post)