Easy debug?

smernesto

02-12-2006 21:25:51

Hi. I have a few questions...

1. How easy is to debug an application that uses Mogre?.
It throws .NET exceptions with good messages or it throws some exceptions that nobody understand?

2. What tools do you recommend for create indoor and outdoor scenes for use in Mogre. And tools for create animations.

3. I want to make a real project with Mogre, It is stable for use it in a real project?

4. How is the performance compared with Ogre.

Thanks

Ernesto Andres Gutierrez Arrazola

Bekas

02-12-2006 22:05:47

1. The exceptions that native Ogre throws doesn't show up as .NET exceptions but you can still get the message like this:
try
{
app.Go();
}
catch(System.Runtime.InteropServices.SEHException)
{
// Check if it's an Ogre Exception
if (OgreException.IsThrown)
System.Windows.Forms.MessageBox.Show(OgreException.LastException.FullDescription, "An exception has occured!", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
else
throw;
}

(plus, Ogre exceptions are reported in the Ogre.log).

And the debugger can step from C# managed code to C++ native code with no problem (in cases where stepping into Ogre is necessary).

2. This question should be directed in the main Ogre forums (also see this: http://www.ogre3d.org/wiki/index.php/DCC_Tools)

3. Yep, so far it's been pretty stable.

4. Similar.

smernesto

03-12-2006 22:19:11

Thanks for the answers.

Then, if i want to catch an ogre exception can I catch some error code from ogre?, mmm , how I know what exception throw Ogre at runtime and make code to work with that exception in my application.

Thanks

Ernesto Gutierrez Arrazola

Bekas

03-12-2006 23:12:19

try
{
app.Go();
}
catch(System.Runtime.InteropServices.SEHException)
{
// Check if it's an Ogre Exception
if (OgreException.IsThrown)
{
int error_code = OgreException.LastException.Number;
...
}
else
throw;
}