Thank you very much.
Now the exception is catched and a Gazebo exception is thrown. It's better
than a segfault but I don't know how to load a default font ...
On Jan 25, 2008 9:12 AM, Michael Sheldon <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've been having trouble with the SVN version of Gazebo and tracked it
> down to gazebo being unable to find the Arial font; it looks like
> instead of calling:
>
> Ogre::Exception(Ogre::Exception::ERR_ITEM_NOT_FOUND,
> "Could not find font " + fontName,
> "MovableText::setFontName");
>
> Which just creates a new Ogre::Exception object and does nothing with
> it (leading to a segfault as it then goes on to try and load the font
> anyway). It looks like you need to be using the OGRE_EXCEPT macro
> instead for the exception to actually be raised correctly; i.e.
>
> OGRE_EXCEPT(Ogre::Exception::ERR_ITEM_NOT_FOUND,
> "Could not find font " + fontName,
> "MovableText::setFontName");
>
> This will then display the error to the user correctly (although in
> this case it might be better to catch the exception and just use the
> default font).
>
> Cheers,
> Mike.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Playerstage-gazebo mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>
--
Jordi Polo Carres
Natural language processing laboratory
NAIST
http://www.bahasara.org
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo