Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Image tutorial finished...
Re: Image tutorial finished... [message #5383 is a reply to message #5380] Sun, 17 September 2006 23:28 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
2. - thanks!

4, 5, 6 - there is a stupid bug OpenAny unfortunately.

Quick fix:

One<StreamRaster> StreamRaster::OpenAny(Stream& s)
{
	INTERLOCKED_(sAnyRaster)
		for(int i = 0; i < Map().GetCount(); i++) {
			int64 p = s.GetPos();
			One<StreamRaster> raster = (*RasterFactory(Map()[i]))();
			s.ClearError();
			if(raster->Open(s))
				return raster;
			s.ClearError();
			s.Seek(p);
		}
	return NULL;
}



(The problem is that GIF loader uses serialization, which in case the file is not GIF fails and puts the Stream into Error mode. Seek is then not performed).
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FrameSplitter
Next Topic: upp_608-dev-1_i386.deb
Goto Forum:
  


Current Time: Mon Aug 18 19:19:20 CEST 2025

Total time taken to generate the page: 0.10858 seconds