Re: [Lazarus] SQLitePass package install problems

2010-07-12 Thread Luca Olivetti
En/na Frank Church ha escrit: As someone interested in SQLite, does it offer support for http://www.sqlite.org/c3ref/busy_timeout.html and http://www.sqlite.org/c3ref/busy_handler.html, or implement them in some way? I use the following with zeos, there should be a way to adapt it to other

[Lazarus] Some questions about thread timing and syncrhonization

2010-07-12 Thread Frank Church
Is the Synchronize method of a thread able to execute when the thread is Suspended? e.g if the following instructions are executed in succession Synchronize(@DispatchOutput); Suspend; After the Execute has performed an instance of the thread's main task, I want the to wait until the

Re: [Lazarus] Some questions about thread timing and syncrhonization

2010-07-12 Thread Tobias Giesen
Synchronize(@DispatchOutput); Suspend; That is not necessary because Synchronize always waits for the command to complete. Cheers, Tobias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Some questions about thread timing and syncrhonization

2010-07-12 Thread Michael Schnell
On 07/12/2010 10:22 AM, Frank Church wrote: Is the Synchronize method of a thread able to execute when the thread is Suspended? e.g if the following instructions are executed in succession Synchronize(@DispatchOutput); Suspend; After the Execute has performed an instance of the

Re: [Lazarus] Some questions about thread timing and syncrhonization

2010-07-12 Thread Frank Church
On 12 July 2010 13:06, Michael Schnell mschn...@lumino.de wrote: On 07/12/2010 10:22 AM, Frank Church wrote: Is the Synchronize method of a thread able to execute when the thread is Suspended? e.g if the following instructions are executed in succession Synchronize(@DispatchOutput);

[Lazarus] How to make SSH connection via FreePascal or Delphi using Indy/Synapse etc?

2010-07-12 Thread Frank Church
Sometime ago I saw an article demonstrating how to make SSH connections using FreePascal or Delphi and one of the main networking component sets. It was on a blog created by one of the Portuguese speaking FreePascal users, probably Brazilian. Can anyone remember it and point me to it? -- Frank

Re: [Lazarus] How to make SSH connection via FreePascal or Delphi using Indy/Synapse etc?

2010-07-12 Thread Henry Vermaak
On 12/07/10 13:39, Frank Church wrote: Sometime ago I saw an article demonstrating how to make SSH connections using FreePascal or Delphi and one of the main networking component sets. It was on a blog created by one of the Portuguese speaking FreePascal users, probably Brazilian. Can anyone

[Lazarus] focus problem with autocomplete list

2010-07-12 Thread Bernd
I am occasionally using Lazarus on my Linux box with KDE running on it and normally I have set the windowmanager to change focus when I only move the mouse without needing to click. When I edit code in Lazarus and the autocomplete list pops up and the mouse cursor is not by chance exactly at the

Re: [Lazarus] How to make SSH connection via FreePascal or Delphi using Indy/Synapse etc?

2010-07-12 Thread Leonardo M.
El lun, 12-07-2010 a las 13:39 +0100, Frank Church escribió: Sometime ago I saw an article demonstrating how to make SSH connections using FreePascal or Delphi and one of the main networking component sets. It was on a blog created by one of the Portuguese speaking FreePascal users, probably

Re: [Lazarus] Some questions about thread timing and syncrhonization

2010-07-12 Thread Michael Schnell
On 07/12/2010 02:27 PM, Frank Church wrote I want the thread to be activated only a certain number of times every few minutes Maybe you better use a TTimer callback event instead of a thread. The purpose of (worker-)threads is to do (fast) work in the background. -Michael --

Re: [Lazarus] How to make SSH connection via FreePascal or Delphi using Indy/Synapse etc?

2010-07-12 Thread Frank Church
Sorry, and sympathies at your untimely exit from the World Cup. You lost to a good team though, although their being German probably didn't help ;) 2010/7/12 Leonardo M. l.r...@griensu.com El lun, 12-07-2010 a las 13:39 +0100, Frank Church escribió: Sometime ago I saw an article

Re: [Lazarus] How to make SSH connection via FreePascal or Delphi using Indy/Synapse etc?

2010-07-12 Thread Leonardo M.
El lun, 12-07-2010 a las 15:10 +0100, Frank Church escribió: Sorry, and sympathies at your untimely exit from the World Cup. You lost to a good team though, although their being German probably didn't help ;) Germany has a great team, but we made everything wrong on that match, the strategy

Re: [Lazarus] Some questions about thread timing and syncrhonization

2010-07-12 Thread Frank Church
The code is running in a TProcess executing command prompt programs rather than from an API, and I thought the issue of waiting for the result makes it better if they are run in threads. My preferred approach is that even if the thread is suspended during the Synchronize period, it should remain

Re: [Lazarus] focus problem with autocomplete list

2010-07-12 Thread Martin
On 12/07/2010 13:59, Bernd wrote: I am occasionally using Lazarus on my Linux box with KDE running on it and normally I have set the windowmanager to change focus when I only move the mouse without needing to click. When I edit code in Lazarus and the autocomplete list pops up and the mouse

[Lazarus] More thread questions.

2010-07-12 Thread Frank Church
Can I take it that a thread will never execute until the Execute procedure is called, and if the Execute procedure is exited, it will not run again until called by the main thread? i.e Resuming a thread which has exited will achieve nothing unless it is called within the scope of an existing

Re: [Lazarus] SQLitePass package install problems

2010-07-12 Thread K. P.
Thanks Jaroslaw, it does indeed work - quite different from Delphi. This will teach me not to assume too much but rather search for documentation! CheersKai Date: Sat, 10 Jul 2010 11:20:23 +0200 From: j@poczta.fm To: lazarus@lists.lazarus.freepascal.org Subject: Re: [Lazarus] SQLitePass

Re: [Lazarus] focus problem with autocomplete list

2010-07-12 Thread Bernd Kreuss
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin wrote: I don't think there is a simple fix for it. Actually in the latest revision it the auto complete will probably even close itself in this case. It behaves like a menu would do = loose focus = close I will try the latest snapshot

Re: [Lazarus] focus problem with autocomplete list

2010-07-12 Thread Martin
On 12/07/2010 17:22, Bernd Kreuss wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin wrote: I don't think there is a simple fix for it. Actually in the latest revision it the auto complete will probably even close itself in this case. It behaves like a menu would do = loose focus

Re: [Lazarus] focus problem with autocomplete list

2010-07-12 Thread Bernd
2010/7/12 Martin laza...@mfriebe.de: There currently is no solution to it, so updating will not solve it either. I am not sure how easy this can be solved at all. Ok, I invested some time now to see what I can do and I think the symptoms can be solved by tweaking my settings of the window

Re: [Lazarus] focus problem with autocomplete list

2010-07-12 Thread Martin
On 12/07/2010 20:21, Bernd wrote: 2010/7/12 Martinlaza...@mfriebe.de: There currently is no solution to it, so updating will not solve it either. I am not sure how easy this can be solved at all. Ok, I invested some time now to see what I can do and I think the symptoms can be

[Lazarus] Lazarus settings on WinXP

2010-07-12 Thread Marcos Douglas
Hi, On WinXP, the Lazarus saves settings in: C:\Documents and Settings\user\Local Settings\Application Data\lazarus\*.* Can I use another directory? I want to use Lazarus in external HD to take to work on multiple CPU. Thanks, MD. -- ___ Lazarus

Re: [Lazarus] focus problem with autocomplete list

2010-07-12 Thread Bernd
2010/7/12 Martin laza...@mfriebe.de: The first one will conflict with any app, that moves the focus itself, or any attempt to move focus by keyboard. Since focus would always return immediately to where the mouse is. Yes, this is true. but for some reason I did never use any programs that

Re: [Lazarus] Lazarus settings on WinXP

2010-07-12 Thread Marcos Douglas
On Mon, Jul 12, 2010 at 5:19 PM, Marcos Douglas m...@delfire.net wrote: Hi, On WinXP, the Lazarus saves settings in: C:\Documents and Settings\user\Local Settings\Application Data\lazarus\*.* Can I use another directory? I want to use Lazarus in external HD to take to work on multiple CPU.

Re: [Lazarus] Lazarus settings on WinXP

2010-07-12 Thread Vincent Snijders
2010/7/12, Marcos Douglas m...@delfire.net: On Mon, Jul 12, 2010 at 5:19 PM, Marcos Douglas m...@delfire.net wrote: Hi, On WinXP, the Lazarus saves settings in: C:\Documents and Settings\user\Local Settings\Application Data\lazarus\*.* Can I use another directory? I want to

[Lazarus] TreeView with columns

2010-07-12 Thread Juha Manninen
Hi If I want to use columns in a TreeView, what alternatives I have? Is there any such component used in Lazarus project itself? I have used VirtualTreeView myself and it supports columns. Juha -- ___ Lazarus mailing list

Re: [Lazarus] TreeView with columns

2010-07-12 Thread Noli Sicad
Juha, Then why don't you use VitualTreeView in Lazarus? It is supported in Lazarus. I just install it the other day. Get it here, Install the latest version. 4.8.6 http://sourceforge.net/projects/lazarus-ccr/files/ It needs the lclextensions0.30 Download lclextensions0.30 here

[Lazarus] TBufDataSet, TMemDataSet and a big headache.

2010-07-12 Thread Marcelo B de Paula
Hi list, As the subject of this post suggest, i am in trouble with these components. I read that TMemDataSet was similar to Delphi´s TClientDataSet as memory dataset. But i also read that people was using TBufDataSet instead of TMemDataSet. What´s the best option if you want to work with

[Lazarus] TBufDataSet, TMemDataSet and a big headache.

2010-07-12 Thread Marcelo B de Paula
Please, Where written bufdataset do not have an OnUpdateError event published, should read TBufDataSet has only the event OnUpdateError published. Thanks. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Lazarus settings on WinXP

2010-07-12 Thread Hans-Peter Diettrich
Marcos Douglas schrieb: I found: --primary-config-path=C:\example Why not exists in Environment/Options IDE? Because the setting will be known only *after* the default configuration has been read. Then that configuration had to be thrown away, and read again from the new source - which in

Re: [Lazarus] More thread questions.

2010-07-12 Thread Paul Nicholls
Hi Frank, AFAIK, a thread WILL execute immediately exiting the Create method unless you pass False to the suspended variable in the create method, and call Resume in the main thread later on. I don't think resuming a thread will never do anything if the threads execute method has fallen