Problem while debug MORGE Samples

Tushar

12-01-2010 11:08:53

Hi friends

I follow the step for installation og MOGRE mension in below Link

viewtopic.php?f=8&t=11241&start=0

I debug the Mogre Samples that given in C:\MorgeSDK\MorgeSamples

i debug the any application of the Samples I get same Error for all the Application
the Exception is coming on Line
Root root=new Root(); (IN InitMogre() Method )

Assertion Failed!
Programm:...
File:c:\devel\gamedevel\morge1.6\morge\o...\ogreroot.cpp
Line:103
Expression:ms_Singleton


If any Body have Idea to solve this Problem Let me know...

Advance Thanks
Have Nice Time

Tushar

12-01-2010 12:45:10

Hi friend

Sorry, Here Give More information about the Last Post(i.e Above Post)

I also Set the Path in Control Panel.
I Also Add Path in Resource.cfg and Remaining *.cfg

(in above I talking Specifically Demo.MorgeForm)

If Any body Know Above problem then let me Know

Plaese Help me
Have Nice Time

Tushar

13-01-2010 06:03:42

Hi friends

Giving More information about my Above Post.

My resources.cfg as following

# 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:/MogreSDK/bin/Release/Media/packs/OgreCore.zip

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


My plugins.cfg as follow
# Defines plugins to load

# Define plugin folder
PluginFolder= C:/MogreSDK/bin/Release/

# Define plugins
Plugin=RenderSystem_Direct3D9
Plugin=RenderSystem_GL
Plugin=Plugin_ParticleFX
Plugin=Plugin_BSPSceneManager
Plugin=Plugin_OctreeSceneManager
Plugin=Plugin_CgProgramManager



My quake3settings.cfg as follow

Pak0Location: C:/MogreSDK/bin/Release/Media/packs/chiropteraDM.pk3
Map: maps/chiropteradm.bsp


Is it ok for me to debug the Morgesample ?
If i make Mistak let me know

Please tell me
Have Nice Time
Advance thanks

Beauty

13-01-2010 13:02:24

Please don't discuss the same problem / content in different threads.
But it's nice that you open a new thread for debugging and improving the samples.


Here is my answer to your redundant post.
The paths of the files resources.cfg and quake3settings.cfg seems to be wrong.
Change C:/MogreSDK/bin/Release/Media/
to C:/MogreSDK/Media/.

I hope this solves your problems.
When you again have a crash, you can also look/post the ogre.log file.
Often there are are useful information (in the last lines).
And of course you can debug the samples.

Since October we build up a new SDK for Mogre from the scratch (see this thread).
It should make more easy the life, especially for newcomers.
There still can be problems. So we are welcome for bug reports and improvement ideas :wink:



I debug the Mogre Samples that given in C:\MorgeSDK\MorgeSamples
I suppose you mean C:\MorgeSDK\Samples

Alternatively you can use relative paths for the config files (e.g. "../myMedia/files") what's useful for advanced applications.
The path must be relative to the directory of your exe file (e.g. "C:\myApplication\bin\Release").

stevevivien

25-01-2010 07:39:37

I seems to get an error each and ever time i go to run the sample code from VB tutorial Basic 0. Followed the instruction down to the letter unfortunately still not working even with the trouble shooting help, nothing but the same error.

"can not intercept exception. Debugged program can not be continued and properties can not be evaluated System.FileIO.FileNotFoundExpection: The specified module could not be found. "

I find this odd can some one help?

brice

25-01-2010 17:59:45

Guys, I cannot help you out specifically as I only started using Mogre.
I just want to say that I struggled for a long time trying to make this work, exchanging dlls and references etc...
But it's this post from Smiley which helped me out two days ago:
viewtopic.php?f=8&t=11977#p67785

I know can program in Mogre and it's a real pleasure, not as buggy as it seems at setup time :)

Now what I would advise is to follow tutorial http://www.ogre3d.org/wiki/index.php/Mo ... Tutorial_0 and also to have a look at the above post. It's in C# but it shows that if you copy all the debug files from MogreSDK directory to your application's directory, if you add a reference to the Mogre_d.dll to your project and copy the simple code provided by smiley it shows a working app which you can start to modify. I don't use a debug working directory or a post-build event command, i just copy all the files and work where I want.

I hope this helps you a bit. Don't let go cos the setup part can ba a b...

brice

25-01-2010 23:10:44

I would also check the MOIS.dll and try dereferencing it to add the one in the other dir (debug->release or the contrary) and re-referencing it.