nanogui: new flnx + mwin-0.89pre2


Previous by date: 11 Oct 2000 15:20:18 -0000 Re: [patch] windef.h enhancements for VxWorks, Brent Thompson
Next by date: 11 Oct 2000 15:20:18 -0000 Microwindows on MPC823, jonb.marel.is
Previous in thread: 11 Oct 2000 15:20:18 -0000 new flnx + mwin-0.89pre2, karl
Next in thread:

Subject: Re: new flnx + mwin-0.89pre2
From: Jeff Moellmer ####@####.####
Date: 11 Oct 2000 15:20:18 -0000
Message-Id: <39E5D7DF.5469610A@censoft.com>

Karl,

Okay, it looks like Fl_Output inherits its value() methods from Fl_Input_.
I've checked both of them and neither of them have changed.

Here are some ideas to try. If they don't work , then we'll just keep on
"digging", okay?

Try putting a Fl::flush() before the sleep or after the sleep to send the
events to MicroWindows. sleep() will hold all events until you unless you
flush().

Try using Fl::add_timeout(double t, void (*cb)(void *), void *v) instead
of sleep(t)? add_timeout() will add a timeout event and do the call back
every t seconds. Check out Fl_Clock::tick() to so how they use this
function for an example.

If you don't want to use a call back (i.e. just wait for one second then
continue), try Fl::wait(1.0).

Thanks,

Jeff

karl wrote:

> Hello,
>
> I have tried my code using flnx-0.10 and mwin-0.88pre11 and it works
> fine!
> I don't know if the problem is an flnx or mwin issue but it's this code
> that
> cause the error:
>
> The loop runs in a thread that are suppose to update the window.
>
>  while(1)
>   {
>   printf("Wnd Looper!\n");
>   sleep(1);
>   sprintf(str,"%i",i);
>   outIterations->value(str);  // here is where the thread get stuck!
>   sprintf(str,"%.3f",grader->mdDeltaZ);
>   outDeltaZ->value(str);
>   printf("Before Fl::flush()\n");
>   Fl::flush();
>   printf("After Fl::flush()\n");
>   i++;
>   }
>
> outIterations and outDeltaZ is an Fl_Output *
>
> the thread don't pass any of the Fl_Output->value() calls
> has somthings changed in any inheritented object
> of Fl_Output ? I have tried to trace the changes, any suggestions??
>
> Regards,
>
> --
> ----------------------------
> Embedded RT System Developer
>
> Karl Janmar
> Svensk ByggnadsGeodesi AB
> Kvarnbergsvägen 27
> 141 45  HUDDINGE
> SWEDEN
>
> Phone: +46 (0)8 7112090
> Fax: +46 (0)8 7112098
> Homepage: http://www.sbg.se
> E-mail: ####@####.####
> ----------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####


Previous by date: 11 Oct 2000 15:20:18 -0000 Re: [patch] windef.h enhancements for VxWorks, Brent Thompson
Next by date: 11 Oct 2000 15:20:18 -0000 Microwindows on MPC823, jonb.marel.is
Previous in thread: 11 Oct 2000 15:20:18 -0000 new flnx + mwin-0.89pre2, karl
Next in thread:


Powered by ezmlm-browse 0.20.