I am also getting same problem. When i clicked on a button ones at that time no errors and opening another window. but clicked on twice am getting error floating point Exception
On Sat, May 26, 2012 at 12:30 AM, <[email protected]> wrote: > Send fltk mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.easysw.com/mailman/listinfo/fltk > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of fltk digest..." > > > Today's Topics: > > 1. Re: fltk Digest, Vol 100, Issue 22 (thirupathi reddy Mekala) > 2. Re: Screenshots draw (Simon) > 3. Re: fltk Digest, Vol 100, Issue 22 (Greg Ercolano) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 25 May 2012 09:44:58 +0530 > From: thirupathi reddy Mekala <[email protected]> > Subject: Re: [fltk.general] fltk Digest, Vol 100, Issue 22 > To: [email protected] > Message-ID: > <CAELHOpucwwukmBA-c35vJhpCDYvC=QH7Q_oCg3=cyxqsd4z...@mail.gmail.com > > > Content-Type: text/plain; charset=ISO-8859-1 > > On Thu, May 24, 2012 at 12:30 AM, <[email protected]> wrote: > > > Send fltk mailing list submissions to > > [email protected] > > > > To subscribe or unsubscribe via the World Wide Web, visit > > http://lists.easysw.com/mailman/listinfo/fltk > > or, via email, send a message with subject or body 'help' to > > [email protected] > > > > You can reach the person managing the list at > > [email protected] > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of fltk digest..." > > > > > > Today's Topics: > > > > 1. Re: FLTK X11 icon (Jacques senecal) > > 2. Floating point Exception (Rajesh Kumar) > > 3. Re: Floating point Exception (Greg Ercolano) > > 4. Re: Floating point Exception (MacArthur, Ian (SELEX GALILEO, UK)) > > 5. How to use cmake with FLTK? (luke) > > > > > > ---------------------------------------------------------------------- > > > > Message: 1 > > Date: Tue, 22 May 2012 18:53:02 -0700 > > From: Jacques senecal <[email protected]> > > Subject: Re: [fltk.general] FLTK X11 icon > > To: [email protected] > > Message-ID: <[email protected]> > > > > > I have a sample code that crashes when the icon is loaded. > > > The icon is a multicolored icon of 32x32. > > > > > > > > > #include <fltk/x11.h> > > > #include <fltk/run.h> > > > #include <fltk/Window.h> > > > #include <X11/xpm.h> > > > #include "../icons/viewer.xpm" > > > > > > int main( int argc, char** argv ) > > > { > > > > > > fltk::Window window( 120, 220 ); > > > > > > fltk::open_display(); // needed if display has not been previously > > opened > > > > > > Pixmap p, mask; > > > > > > if ( XpmCreatePixmapFromData(fltk::xdisplay, > > > DefaultRootWindow(fltk::xdisplay), > > > viewer_xpm, > > > &p, &mask, NULL) == XpmSuccess ) > > > { > > > // uncomment to crash program > > > //window.icon((char *)p); > > > } > > > > > > window.show( ); > > > fltk::run(); > > > } > > > > > > > window must be shown before setting the icon. > > Jacques Senecal. > > > > > > > > > > ------------------------------ > > > > Message: 2 > > Date: Wed, 23 May 2012 12:09:05 +0530 > > From: Rajesh Kumar <[email protected]> > > Subject: [fltk.general] Floating point Exception > > To: "Mirror of fltk.general Newsgroup" <[email protected]> > > Message-ID: > > <CAE5CmjukyrHyUoL6opZvmpXM0J6iO8hssgw= > [email protected] > > > > > Content-Type: text/plain; charset=ISO-8859-1 > > > > Hi all, > > > > When I clicked on a button twice am getting error floating point > > Exception and application got closed. Why it is happening???? > > In the callback of button am clearing clearing thr current > window > > and opening another window. > > > > Am using FLTK-1.3 and ARM processor based X11 linux > environment. > > > > -- > > * > > Thanks & Regards, > > Rajesh Kumar P > > * > > > > > > ------------------------------ > > > > Message: 3 > > Date: Wed, 23 May 2012 00:05:18 -0700 > > From: Greg Ercolano <[email protected]> > > Subject: Re: [fltk.general] Floating point Exception > > To: [email protected] > > Message-ID: <[email protected]> > > Content-Type: text/plain; charset=ISO-8859-1 > > > > On 05/22/12 23:39, Rajesh Kumar wrote: > > > Hi all, > > > > > > When I clicked on a button twice am getting error floating > point > > > Exception and application got closed. Why it is happening???? > > > In the callback of button am clearing clearing thr current > > window > > > and opening another window. > > > > > > Am using FLTK-1.3 and ARM processor based X11 linux > > environment. > > > > > > > No idea, need more details. > > > > Try running the app in a debugger like gdb > > to see where (what line) the float exception is happening. > > > > Also: at least show us some code that demonstrates the problem. > > > > > I am also getting same problem. When i clicked on a button ones at that > time no errors and opening another window. but clicked on twice am > getting error floating point Exception. > > > > > > > ------------------------------ > > > > Message: 4 > > Date: Wed, 23 May 2012 09:47:33 +0000 > > From: "MacArthur, Ian (SELEX GALILEO, UK)" > > <[email protected]> > > Subject: Re: [fltk.general] Floating point Exception > > To: "Mirror of fltk.general Newsgroup" <[email protected]> > > Message-ID: > > < > > f80974b6b555c74db31726e4419db18b190ec...@desmdswms001.des.grplnk.net> > > Content-Type: text/plain; charset="windows-1252" > > > > > > > When I clicked on a button twice am getting error floating > point > > > Exception and application got closed. Why it is happening???? > > > In the callback of button am clearing clearing thr current > > > window > > > and opening another window. > > > > > > No idea. > > > > Show us some minimal, compileable, code that exhibits the fault so that > we > > can investigate. > > > > > > Probably closing the first window in the button callback is the problem, > > if that is what you are doing, since that may leave unreferenced widgets. > > > > This is discussed in the documents, including approaches that allow this > > to be done safely, so make sure you have followed that advice properly. > > > > > > > > > > > > > > > > > > SELEX Galileo Ltd > > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex > > SS14 3EL > > A company registered in England & Wales. Company no. 02426132 > > ******************************************************************** > > This email and any attachments are confidential to the intended > > recipient and may also be privileged. If you are not the intended > > recipient please delete it from your system and notify the sender. > > You should not copy it or use it for any purpose nor disclose or > > distribute its contents to any other person. > > ******************************************************************** > > > > > > > > ------------------------------ > > > > Message: 5 > > Date: Wed, 23 May 2012 10:03:03 -0700 > > From: luke <[email protected]> > > Subject: [fltk.general] How to use cmake with FLTK? > > To: [email protected] > > Message-ID: <[email protected]> > > > > I tried to follow the documentation page to install fltk on a unix system > > but when I tried to link fltk-1.3.0 with the latest > > InsightApplications-4.1.1 software. I kept getting some errors where the > > InsightApplications needs to know where FLTKConfig.cmake file is but that > > is only created when I use the cmake command compared to following the > > documentation page. But when I do a ccmake comand, I get stopped by > errors > > when I run the make command. Has anyone else run into this problem? > > > > Luke H > > > > > > ------------------------------ > > > > _______________________________________________ > > fltk mailing list > > [email protected] > > http://lists.easysw.com/mailman/listinfo/fltk > > > > > > End of fltk Digest, Vol 100, Issue 22 > > ************************************* > > > > > ------------------------------ > > Message: 2 > Date: Fri, 25 May 2012 11:00:56 -0400 > From: Simon <[email protected]> > Subject: Re: [fltk.general] Screenshots draw > To: "Mirror of fltk.general Newsgroup" <[email protected]> > Message-ID: > <can1q39vkacgbmekwqcu7oiq8nhne_t0enox_j5jo7tvjux2...@mail.gmail.com > > > Content-Type: text/plain; charset=ISO-8859-1 > > Sorry I didn't follow my own post closely. Personall and local events in > Montreal took most of my attention recently. > ...but... back to topic!... > > Thank you Edzard for the files you posted, I was going that way anyway, but > your posts will save me a lot of time! > > I was actually thinking on binding the "screenshot" mechanism to some > event, button, keys, timer or anything that would be useful in a given > context. Is there a real need to have the fl_read_image() call at a > specific place? or is the only important thing that drawing be finished? > > By the way guys, I'm reading the opengl superbible in which they read and > write to TGA files (uncompressed). The format is basically one standard > tga header struct, written straight with fwrite and sizeof(the struct) > followed by the pixel data in RGB (8bit per component). > The final image file has a size of (width*height*3 + sizeof(tga_header)). > If space isn't important, this seems the simplest approach. But it does > become a bit more involved if you need the image to be portable across > different arch endianess, etc. > > This said, I will still use PNGs anyway! I used to program opengl in the > oldshool days over 10 years ago and I loved the 16bit per component feature > for dealing with a height field (otherwise, the heightfield has 256 steps > in its slopes). > > Thanks a lot guys! > > Simon > > > On Tue, May 15, 2012 at 5:57 AM, MacArthur, Ian (SELEX GALILEO, UK) < > [email protected]> wrote: > > > > > > protected: > > > void draw() > > > { > > > Fl_Double_Windwo::draw(); > > > if (unsigned char* pImage= fl_read_image(0, 0, 0, w(), h(), 0)) > > > { > > > write_png("/home/ed/temp/image.png", pImage, w(), h(), 3); > > > delete[] pImage; > > > } > > > } > > > }; > > > > > > When you use this window-class, it will copy every draw to "image.png". > > > > Yeah - I'd strongly advocate putting a control flag around that so it > only > > saves one screenshot, when you actually want it! > > > > > > > > SELEX Galileo Ltd > > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex > > SS14 3EL > > A company registered in England & Wales. Company no. 02426132 > > ******************************************************************** > > This email and any attachments are confidential to the intended > > recipient and may also be privileged. If you are not the intended > > recipient please delete it from your system and notify the sender. > > You should not copy it or use it for any purpose nor disclose or > > distribute its contents to any other person. > > ******************************************************************** > > > > _______________________________________________ > > fltk mailing list > > [email protected] > > http://lists.easysw.com/mailman/listinfo/fltk > > > > > ------------------------------ > > Message: 3 > Date: Fri, 25 May 2012 11:50:47 -0700 > From: Greg Ercolano <[email protected]> > Subject: Re: [fltk.general] fltk Digest, Vol 100, Issue 22 > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > >> Message: 3 > >> Date: Wed, 23 May 2012 00:05:18 -0700 > >> From: Greg Ercolano <[email protected]> > >> Subject: Re: [fltk.general] Floating point Exception > >> > >> On 05/22/12 23:39, Rajesh Kumar wrote: > >>> When I clicked on a button twice am getting error floating > point > >>> Exception and application got closed. Why it is happening???? > >>> In the callback of button am clearing clearing thr current > >>> window and opening another window. > >>> Am using FLTK-1.3 and ARM processor based X11 linux > environment. > > >> > >> No idea, need more details. > >> > >> Try running the app in a debugger like gdb > >> to see where (what line) the float exception is happening. > >> > >> Also: at least show us some code that demonstrates the problem. > > thirupathi reddy Mekala <[email protected]> writes: > > I am also getting same problem. When i clicked on a button ones at that > > time no errors and opening another window. but clicked on twice am > > getting error floating point Exception. > > > Then please include debugger output or a small compilable > program that demonstrates the problem. > > Also: when replying to a digest version of the group, > please trim the irrelevant info.. Most people won't even see > your response if it's buried in the middle of a long digest. > > > ------------------------------ > > _______________________________________________ > fltk mailing list > [email protected] > http://lists.easysw.com/mailman/listinfo/fltk > > > End of fltk Digest, Vol 100, Issue 24 > ************************************* > _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

