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 #5402 is a reply to message #5383] Mon, 18 September 2006 15:50 Go to previous messageGo to previous message
Werner is currently offline  Werner
Messages: 234
Registered: May 2006
Location: Cologne / Germany
Experienced Member
luzr wrote on Sun, 17 September 2006 23:28

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).


Thank you very much for your answer. Smile

I re-checked the issue using

- Windows XP,
- MSC8,
- the new 609-dev2,
- your above cited patch.

All problems seem to be solved now except one Sad :

TIF (TIFF) files can neither be opened with Image04 nor can they be edited with Image05. (It goes without saying that this is true even if the "plugin\tif" package is added.) And the TIF (TIFF) files are not to blame: to reinsure this I opened them using Photoshop, GIMP, and IrfanView: no problems!

Werner
 
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:37 CEST 2025

Total time taken to generate the page: 0.06067 seconds