[Lazarus] Dragging a window freezes threads using synchronize [was Unmoveable forms?]
Graeme Geldenhuys
graemeg.lists at gmail.com
Thu Jun 26 23:45:02 CEST 2008
2008/6/26 Luca Olivetti <luca at wetron.es>:
>> My main reason is that the layout of the screeen(s) has to be fixed,
>> besides avoiding the dragging of the form avoids freezing threads
>> waiting on a Synchronize (though dragging a scrollbar will freeze them
>> anyway, and that's really bad for my application).
>
> I now found out that this bad behaviour is lazarus specific: under
> delphi I can drag the window and/or the scrollbar and the synchronized
> procedure won't stop the thread, while under lazarus it does.
> This is *really* bad, since a user could inadvertently stop the
> background threads.
> I could try some workaround (i.e not using synchronize but set some
> variables in the main form and use a timer to update the visual
> compnents) but it's ugly and error-prone.
I don't think it's just Lazarus. I think Windows is to blame as well.
I have noticed the same freezing behavior on numerous occasions under
Win2000 and WinXP. eg: I was coping files with Windows Explorer. I
then scrolled some other windows with the mouse button down on the
scrollbar. The copying stopped until I released the mouse! This
happened over and over. No idea if it's related to your problem
though. What I can say, is that nothing like this has never happened
under Linux.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the Lazarus
mailing list