Create Imageset from Image File

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

nbauernf
Just popping in
Just popping in
Posts: 1
Joined: Sat Mar 11, 2006 01:17

Create Imageset from Image File

Postby nbauernf » Sat Mar 11, 2006 01:36

I have a problem with the CreateImagesetFromImageFile function. It is supposed to throw an exception when it has some file problems loading the image. It does this the first time I call it with a particular filename that does not exist, but the second time it is called it no longer throws that exception. I believe this is a bug ... but have no idea how to get around it.

In my program you can add any number of files to a list... and none of them are loaded until you ask to modify it's properties. So, if you click the modify button it tries to load it... if it fails it just catches the exception and we're fine.

However, the second time you click the modify button I get an exception from Ogre saying that the image couldn't be found ... which means that the createImagesetFromImageFile function returned a value and did not throw an exception.

I double checked my theory of it throwing an exception the first time and not the second time with some MessageBox functions to see how far down which path the program took on the first call and then the subsequent call. That verified my claim of it throwing an exception once and not the second.

So I just am not sure what to do about this. I'd prefer my program not to crash ever... but it looks like I might have to make an exception of my own for now. Any suggestions?

Nate

Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 4 guests