Re: [fltk.general] Crash due to memory allocation?

2007-03-28 Thread Greg Ercolano
> Iain Staffell wrote: >> class Pictar.. >> [..] >> private: >> double img[600][600]; Gahh. sizeof(double) is typically what, 8 bytes.. So 8 x 600 x 600 = 2.8MB, all that allocated on the stack? Yikes. MacArthur, Ian (SELEX) (UK) wrote: > You are creating your Pictar widget o

Re: [fltk.general] Focus

2007-03-28 Thread imm
On 28 Mar 2007, at 18:24, Millan wrote: > Then I'll check it again. I've deduced previous conclusion, that > call to > timeout function is crucial alone, by commenting out timeout > function call and > leaving only overridden "handle()" method in your program, and it > didn't > worked, but s

Re: [fltk.general] Focus

2007-03-28 Thread Millan
28.03.2007 "MacArthur, Ian \(SELEX\) \(UK\)" <[EMAIL PROTECTED]> wrote: > Two ways occurred to me to work around the hide/show and focus issues - > one was the "workaround" of using a timeout, the other was the more > stylish overriding of the handle method - I tried to show both > approaches in

Re: [fltk.general] Focus - Handling of ESC key in fltk-2 input widgets

2007-03-28 Thread MacArthur, Ian \(SELEX\) \(UK\)
> > deleted, and then > > releases "backspace" key and presses "escape" key, then the > > first character of > > previous (deleted) string will appear, and program wont quit > > on subsequent > > "escape" key presses. Is this a bug in FLTK 2.x? > > I don't know - I hadn't seen that before. Prob

Re: [fltk.general] Focus

2007-03-28 Thread MacArthur, Ian \(SELEX\) \(UK\)
> I think that call to "fltk::add_timeout(0.05, cb_grab_focus, > wordInput);" is > crucial, without it this doesn't work, that is I don't have to use > overloading of (hadle()) method. Two ways occurred to me to work around the hide/show and focus issues - one was the "workaround" of using a time

Re: [fltk.general] Focus

2007-03-28 Thread Millan
28.03.2007 "MacArthur, Ian \(SELEX\) \(UK\)" <[EMAIL PROTECTED]> wrote: > Pardon? > I thought I was being constructive and helpful - perhaps you have > mis-read my intent? Yes, slightly. In that case, please take my apology for that, and let us then finish here this unnecessary, and time consumin

Re: [fltk.general] Crash due to memory allocation?

2007-03-28 Thread MacArthur, Ian \(SELEX\) \(UK\)
> Before I post this in the bugs forum, I would like to check > that I'm not doing anything painfully stupid - although I've > programmed for a while I am very new to FLTK.. You are creating your Pictar widget on the stack, and there is insufficient stack space in your runtime environment to s

[fltk.general] Crash due to memory allocation?

2007-03-28 Thread Iain Staffell
Before I post this in the bugs forum, I would like to check that I'm not doing anything painfully stupid - although I've programmed for a while I am very new to FLTK.. I am writing a simple drawing widget that will build up an image out of pixels which are calculated within the main body of cod

Re: [fltk.general] Focus

2007-03-28 Thread MacArthur, Ian \(SELEX\) \(UK\)
> > Can you post a small, complete, example somewhere? Then > > people might be able to advise you further? > > Excuse me, but I really don't think there is a need for such > tone in your message. Pardon? I thought I was being constructive and helpful - perhaps you have mis-read my intent? > C