U++ framework
Do not panic. Ask here before giving up.

Home » U++ TheIDE » U++ TheIDE: Installation, Compiling and Running of theide » [BUG] TheIDE startup JPEG error
Re: [BUG] TheIDE startup JPEG error [message #25832 is a reply to message #25826] Sun, 14 March 2010 19:04 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Well, this is really weird, as:

bool PNGRaster::Init()
{
	try {
		if(!(data->png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING,
		                                            NULL, png_user_error_fn, png_user_warning_fn)))
			return false;
		if(!(data->info_ptr = png_create_info_struct(data->png_ptr)))
			return false;
		png_set_read_fn(data->png_ptr, &GetStream(), png_read_stream);
		png_read_info(data->png_ptr, data->info_ptr); <<--- line 113
		return true;
	}
	catch(PngErrorException) {
		return false;
	}
}


So the last call from U++ is in try block, with catch provided....

So either I do not understand C++ exceptions well, or something is wrong with compiler? Perhaps it is not possible to catch exception over C code? (That would be pity, because I have switched from setjmp as it does not work in Win64...)

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem installing theIDE 2224
Next Topic: [MINGW] WIN32 compile errors
Goto Forum:
  


Current Time: Sat Sep 19 02:55:22 GMT+2 2026

Total time taken to generate the page: 0.00880 seconds