Revision: 4494 http://pd-gem.svn.sourceforge.net/pd-gem/?rev=4494&view=rev Author: zmoelnig Date: 2011-08-26 09:47:55 +0000 (Fri, 26 Aug 2011) Log Message: ----------- catch ALL for exceptions
Modified Paths: -------------- trunk/Gem/plugins/imageMAGICK/imageMAGICK.cpp Modified: trunk/Gem/plugins/imageMAGICK/imageMAGICK.cpp =================================================================== --- trunk/Gem/plugins/imageMAGICK/imageMAGICK.cpp 2011-08-26 09:47:26 UTC (rev 4493) +++ trunk/Gem/plugins/imageMAGICK/imageMAGICK.cpp 2011-08-26 09:47:55 UTC (rev 4494) @@ -132,7 +132,6 @@ imageStruct*img=const_cast<imageStruct*>(&image); imageStruct*pImage=img; - std::string cs; switch(img->format) { case GL_LUMINANCE: @@ -151,7 +150,6 @@ cs="BGRA"; break; } - try{ Magick::Image mimage(pImage->xsize, pImage->ysize, cs, Magick::CharPixel, pImage->data); // since openGL is upside down @@ -161,24 +159,21 @@ // 8 bits per channel are enough! // LATER make this dependent on the image->type mimage.depth(8); - double quality; if(props.get("quality", quality)) { mimage.quality(quality); } - - - - // finally convert and export mimage.write(filename); } catch (Magick::Exception e){ error("%s", e.what()); if(pImage!=&image)delete[]pImage; pImage=NULL; return false; + } catch (...) { + error("imageMAGICK:: uncaught exception!"); + return false; } if(pImage!=&image)delete[]pImage; pImage=NULL; - return true; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ pd-gem-CVS mailing list pd-gem-CVS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pd-gem-cvs