Re: [Lazarus] Are multiple critical sections allowed in form or data module?

2011-10-09 Thread Mattias Gaertner
On Sun, 9 Oct 2011 00:22:10 +0100 Frank Church vfcli...@gmail.com wrote: Are multiple critical sections allowed in form or data module? e.g. I have different datasets each with its own connection and queries that threads need to lookup data from. Is it acceptable to have additional

Re: [Lazarus] Are multiple critical sections allowed in form or data module?

2011-10-09 Thread Frank Church
On 9 October 2011 07:30, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Sun, 9 Oct 2011 00:22:10 +0100 Frank Church vfcli...@gmail.com wrote: Are multiple critical sections allowed in form or data module? e.g. I have different datasets each with its own connection and queries that

[Lazarus] Purpose of TControl.UpdateRolesForForm?

2011-10-09 Thread Hans-Peter Diettrich
This method is called by a form, when its Default or Cancel control changes. But why do the affected controls receive no hint about their new role? What's the intended purpose of this method? If it is used (overridden) only in TCustomButton, the (there) interesting information could be

Re: [Lazarus] Are multiple critical sections allowed in form or data module?

2011-10-09 Thread Hans-Peter Diettrich
Frank Church schrieb: Is it acceptable to have additional TCriticalSections on the form? Yes. I hope you are aware that all code accessing the LCL must run in the main thread. Mattias Can you explain this? A critical section blocks all code, that wants to enter the

Re: [Lazarus] Are multiple critical sections allowed in form or data module?

2011-10-09 Thread Mattias Gaertner
On Sun, 9 Oct 2011 08:14:41 +0100 Frank Church vfcli...@gmail.com wrote: On 9 October 2011 07:30, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Sun, 9 Oct 2011 00:22:10 +0100 Frank Church vfcli...@gmail.com wrote: Are multiple critical sections allowed in form or data module?

Re: [Lazarus] Are multiple critical sections allowed in form or data module?

2011-10-09 Thread Mattias Gaertner
On Sun, 09 Oct 2011 10:49:31 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: [...] The LCL is not reentrant. Most LCL code is reentrant. An event can trigger an event. On of the few exceptions is destroying a control. That's why there is Application.ReleaseComponent. [...] Mattias

[Lazarus] PAge Control Problem in a WinCE

2011-10-09 Thread Tommi Prami
Bugreport at : http://bugs.freepascal.org/view.php?id=20442 -Tee- -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Purpose of TControl.UpdateRolesForForm?

2011-10-09 Thread Vincent Snijders
2011/10/9 Hans-Peter Diettrich drdiettri...@aol.com: This method is called by a form, when its Default or Cancel control changes. But why do the affected controls receive no hint about their new role? What's the intended purpose of this method? If it is used (overridden) only in

Re: [Lazarus] PAge Control Problem in a WinCE

2011-10-09 Thread Vincent Snijders
2011/10/9 Tommi Prami groups.tpr...@gmail.com: Bugreport at :  http://bugs.freepascal.org/view.php?id=20442 If you use lazarus 0.9.31 from trunk, then read http://wiki.lazarus.freepascal.org/Lazarus_0.99.0_release_notes#TCustomPageControl.2FTPageControl.OnPageChanged_were_removed That page

Re: [Lazarus] Are multiple critical sections allowed in form or data module?

2011-10-09 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: On Sun, 09 Oct 2011 10:49:31 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: [...] The LCL is not reentrant. Most LCL code is reentrant. Only within the context of an single thread. This was acceptable on traditional single-CPU/core machines, but

Re: [Lazarus] PAge Control Problem in a WinCE

2011-10-09 Thread Hans-Peter Diettrich
Vincent Snijders schrieb: 2011/10/9 Tommi Prami groups.tpr...@gmail.com: Bugreport at : http://bugs.freepascal.org/view.php?id=20442 If you use lazarus 0.9.31 from trunk, then read

Re: [Lazarus] Are multiple critical sections allowed in form or data module?

2011-10-09 Thread Michael Van Canneyt
On Sun, 9 Oct 2011, Hans-Peter Diettrich wrote: Mattias Gaertner schrieb: On Sun, 09 Oct 2011 10:49:31 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: [...] The LCL is not reentrant. Most LCL code is reentrant. Only within the context of an single thread. This was acceptable

Re: [Lazarus] PAge Control Problem in a WinCE

2011-10-09 Thread Tommi Prami
On 9.10.2011 14:02, Vincent Snijders wrote: 2011/10/9 Tommi Pramigroups.tpr...@gmail.com: Bugreport at : http://bugs.freepascal.org/view.php?id=20442 If you use lazarus 0.9.31 from trunk, then read

Re: [Lazarus] Are multiple critical sections allowed in form or data module?

2011-10-09 Thread Hans-Peter Diettrich
Michael Van Canneyt schrieb: On Sun, 9 Oct 2011, Hans-Peter Diettrich wrote: Mattias Gaertner schrieb: On Sun, 09 Oct 2011 10:49:31 +0200 Hans-Peter Diettrich drdiettri...@aol.com wrote: [...] The LCL is not reentrant. Most LCL code is reentrant. Only within the context of an single

[Lazarus] Initial value of BidiMode in RightToLeft system

2011-10-09 Thread Zaher Dirkey
Hi, I have English tools, but it work as Right to left forms, becuase it get the BidiMode from the language, while i am not choose any language for my application. That is not bug, it is wrong behavior. application.inc line #111 LCLGetLanguageIDs(LangDefault, LangFallback); if LangDefault

[Lazarus] Use of .lps files to avoid unnecessary changes to .lpi files

2011-10-09 Thread Frank Church
I just read this blog article http://www.lazarussupport.com/lazarus/weblog/project_settings_in_delphi_and_lazarusabout how Lazarus can store IDE settings in .lps files to stop causing needless changes to the .lpi which messes up version control. I was just about to ask about how to configure it

Re: [Lazarus] PAge Control Problem in a WinCE

2011-10-09 Thread Felipe Monteiro de Carvalho
I had hoped that the widgetset interface would allow to implement simple tabbed controls (without pages), and derive paged controls in the LCL, but nothing happened in that direction :-( Wasnt you the one sending patches for the new ttabcontrol? But then stopped suddenly. Of course the new

Re: [Lazarus] Initial value of BidiMode in RightToLeft system

2011-10-09 Thread Zaher Dirkey
On Mon, Oct 10, 2011 at 7:46 AM, Hans-Peter Diettrich drdiettri...@aol.comwrote: Zaher Dirkey schrieb: Hi, I have English tools, but it work as Right to left forms, becuase it get the BidiMode from the language, while i am not choose any language for my application. That is not bug, it is