Hi,

I have tried the pixmap_browser demo and that displayed the pictures just fine.

Initially, I was trying to use the Fl_PNM_Image class but pixmap_browser uses 
Fl_Shared_Image so I tried changing my code to use that instead.  However, this 
resulted in "Segmentation fault" being printed to the terminal (I'm using Suse 
Linux, in case that makes any difference).  As far as I can see the code is 
virtually the same.  The only thing I can see is the location of the calls to 
fl_register_images(), Fl::args(...) and "if (!dvisual) Fl::visual(FL_RGB);".  
I'm not really sure what these methods do and whether the point at which they 
get called makes any difference.  Maybe that could be causing the problem?

Thanks,
Karol

>
> On 2 Mar 2007, at 16:48, Karol wrote:
>
> > Can anyone tell me why this isn't working or alternatively suggest
> > a (better) way of making it work?
>
> Hard to say, with the info so far...
>
> How about this - does the pixmap demo in the fltk test folder work
> for you? How similar is that to your code, maybe there is something
> there that might help?
>
> Also, the how-to I wrote about manipulating image data has an example
> that can load an image file from the command line - does that work
> for you?
>
> http://www.fltk.org/articles.php?L468
>
>

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to