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++ » UppHub » Raster Control
Re: Raster Control [message #15198 is a reply to message #14940] Tue, 08 April 2008 17:34 Go to previous messageGo to previous message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
I'm trying it from 2008.1beta2 installation, and I hit crash right after opening first image I found on my disc. Smile

It turned out the very first image I found was gif, and you didn't add plugin/gif package, so the RasterCtrl\RasterCtrl.cpp:55 line
raster = StreamRaster::OpenAny(imageStream);

ends with NULL assigned to raster.

Than the next for loop
	for(curPage = 0; curPage < raster->GetPageCount(); curPage++)

will crash due to referencing null pointer.

I think there should be some error handler instead of crash in case the input stream did not result into valid raster object.

Another funny thing I encountered was opening that gif finally (after I did add plugin/gif package), it fits the width of window (it's scaled up a bit) with vertical scrollbar, than I used View / Zoom 10%, than View / Page width, and I do get both vertical and horizontal scrollbars suddenly. After using View / Page width second time, the horizontal scrollbars is gone and I have the "default" view just like after opening the image.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Job opportunity for Ultimate++ developer
Next Topic: Service/daemon for Ultimate++
Goto Forum:
  


Current Time: Wed Jun 05 08:28:40 CEST 2024

Total time taken to generate the page: 0.01049 seconds