Hello,

I am currently encountering a problem in my user interface, that occurs only 
under Windows XP platforms.
I am creating a window that contains a PNG (or JPEG) image.

It seems that loading a picture larger than 100 kbytes makes my program crash 
(I modified that picture to another one of 94 kb, and my application worked 
fine).
If I am not wrong, there is nowhere a specific note regarding that limit. I 
also checked on this forum and on the Internet but I did not find anything.
I am pretty sure this comes from the way I am using it.

Did anybody encounter such a problem ? Would you have any idea where it could 
come from ?

I just precise that my program is compiled under Windows Vista SP1.
I join below the code I developped :

* ======================================================================
  // --- Generation of the window
  win = new paletteWindow( width, height,  CTX::instance()->nonModalWindows ?
                           true : false, "EBW Heat Source Description");
  win->box(GMSH_WINDOW_BOX);

  // --- Path to the picture
  string picture_path = current_path;
  picture_path += "/Figures/EBW_Heat_Source.png"; // EBW_Heat_Source

  fl_register_images();
  Heat_Source = new Fl_PNG_Image( picture_path.c_str() );
  Heat_Source_Box = new Fl_Box( 0, 0, width, height );
  Heat_Source_Box->box(FL_FLAT_BOX);
  Heat_Source_Box->image(Heat_Source->copy( width, height) );
  win->position( CTX::instance()->solverPosition[-1],
                   CTX::instance()->solverPosition[0] );

* ======================================================================

Thanks a lot in advance for your help,

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

Reply via email to