Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-27 Thread Martin Schreiber
> There is application.queueasynccall() ... Ha, ** VERY MUCH ** better. ;-) ---> No more underrun error, no scratch when opening dialog files, no scratch when switching float<>tab or opening/closing forms. Synchronization: perfect. (maybe even better than fpc-queue()). OK, re-come back to

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-26 Thread fredvs
> There is application.queueasynccall() ... Ha, ** VERY MUCH ** better. ;-) ---> No more underrun error, no scratch when opening dialog files, no scratch when switching float<>tab or opening/closing forms. Synchronization: perfect. (maybe even better than fpc-queue()). OK, re-come back to

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-26 Thread fredvs
> There is application.queueasynccall() OK, I will try this. Asap. Thanks. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ -- Check out the vibrant tech community on one of the world's most

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-25 Thread Martin Schreiber
On Monday 25 September 2017 23:59:49 fredvs wrote: > Hello Martin. > > I did play with lock()/unlock in uos but still those underrun errors. > > There is something that I do not catch. > As I wrote before, application.lock() waits until the main thread is idle and then runs in context of calling

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-25 Thread Martin Schreiber
On Monday 25 September 2017 18:14:51 Martin Schreiber wrote: > You also can use .asyncevent() in order to send and > .onasyncevent in order to receive an event or > .postcomponentevent() to send and overriding > .componentevent() to receive. I'll probably add > tform.oncomponentevent for

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-25 Thread fredvs
Hello Martin. I did play with lock()/unlock in uos but still those underrun errors. There is something that I do not catch. So I came back with {.$DEFINE mse} (that uses classical fpc thread + queue()) and all synchros are ok without any error underrun message. Also no more scratch when

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-25 Thread fredvs
> How do you do that? application.lock()/unlock()? Maybe. I have to check uos code. It uses {$DEFINE mse} and so uses msethreads and application.lock()/unlock(). Maybe there are not placed on the right place... application.lock()/unlock() is not used in Strumpact forms. > An alternative is...

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-25 Thread Martin Schreiber
On Monday 25 September 2017 14:24:17 fredvs wrote: > > This night will be a merciless test, StrumPract will be the dj all night. > > Hello Martin. > > OK, the night was white. > > Strumpact did his DJ job perfectly, no crash, no pause. > Congrats! > The only detail is when a thread is

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-25 Thread fredvs
> This night will be a merciless test, StrumPract will be the dj all night. Hello Martin. OK, the night was white. Strumpact did his DJ job perfectly, no crash, no pause. The only detail is when a thread is synchronizing graphic of a other form (not the parent form of the thread). It produce

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-24 Thread Martin Schreiber
On Sunday 24 September 2017 20:30:07 fredvs wrote: > Hello Martin. > > ... > > WOW > > ... > > > Linux gui_getevent() breakes xfilterevent() loop if there is no message. > > If I may, you did discover something **very** annoying. > No, that problem existed in MSEgui some weeks only (since

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-24 Thread fredvs
Hello Martin. ... WOW ... > Linux gui_getevent() breakes xfilterevent() loop if there is no message. If I may, you did discover something **very** annoying. My previous audio project: miXimum uses LCL + Bass audio library. https://sites.google.com/site/fiensprototyping/ Because of that

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-24 Thread Martin Schreiber
On 09/24/2017 09:44 AM, Martin Schreiber wrote: > On 09/23/2017 01:35 PM, fredvs wrote: >> Hello Martin. >> >>> I can reproduce it now if not compiled with -gh >> >> Ha here it appends even with -gh. >> > I can't reproduce it anymore. If it is reproducible for you I fear you > need to debug

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-24 Thread Martin Schreiber
On 09/24/2017 09:44 AM, Martin Schreiber wrote: >> > Seems to be fixed with the attached patch. > " +//and the application.unlock() below looks suspect " because it is in an if statement. Martin

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-24 Thread Martin Schreiber
On 09/23/2017 01:35 PM, fredvs wrote: > Hello Martin. > >> I can reproduce it now if not compiled with -gh > > Ha here it appends even with -gh. > I can't reproduce it anymore. If it is reproducible for you I fear you need to debug yourself. >> But sometimes there is a libc memory error > >

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-23 Thread fredvs
Hello Martin. > I can reproduce it now if not compiled with -gh Ha here it appends even with -gh. > But sometimes there is a libc memory error How do you get that error ? Even with -ghl + debugger I cannot have errors. Very difficult to debug then. What could I do ? Thanks. Fre;D --

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-23 Thread Martin Schreiber
On 09/23/2017 10:18 AM, Martin Schreiber wrote: >> Works for me, can not reproduce. > > Aha, I can reproduce it now if not compiled with -gh. Smells like a > memory error. I'll take a look. > Nope, it happens anymore. But sometimes there is a libc memory error: " *** Error in

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-23 Thread Martin Schreiber
On 09/23/2017 09:06 AM, Martin Schreiber wrote: > On Friday 22 September 2017 23:46:32 fredvs wrote: >> Hello Martin. >> >> I have a strange problem. >> >> While using a timer, sometimes, the application pause itself. >> >> But when moving the mouse, it re-works again. >> >> See video. >>

Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-23 Thread Martin Schreiber
On Friday 22 September 2017 23:46:32 fredvs wrote: > Hello Martin. > > I have a strange problem. > > While using a timer, sometimes, the application pause itself. > > But when moving the mouse, it re-works again. > > See video. > mse_stopnomouse2.mp4 >

[MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-22 Thread fredvs
Hello Martin. I have a strange problem. While using a timer, sometimes, the application pause itself. But when moving the mouse, it re-works again. See video. mse_stopnomouse2.mp4 What could be the cause of this ?