Re: [Lazarus] File sync system approach

2015-07-30 Thread Antonio Fortuny
On 29.07.2015 12:37 carra, Aradeonas wrote: Ok.Now I want to work on file sync part and for that I need to choose a library.Indy,Synapse or ... . What you guys prefer in this case?Synapse is easy to use and I like it but Indy seems larger and more powerful but I didn't work with it. For this

[Lazarus] Lazarus 1.2

2014-03-20 Thread Antonio Fortuny
Hi FOlks. I'm testing Lazarus 1.2 on a W7 64bit with cross compilation for Win64 and WinCE as Lazarus is Win32. All three downloaded and installed without problems With a little project, no problems at all, it compiles and runs on all three platforms. So far so good. Now, real projects but

Re: [Lazarus] Lazarus 1.2

2014-03-20 Thread Antonio Fortuny
Le 20/03/2014 12:14, Antonio Fortuny a écrit : Hi FOlks. I'm testing Lazarus 1.2 on a W7 64bit with cross compilation for Win64 and WinCE as Lazarus is Win32. All three downloaded and installed without problems With a little project, no problems at all, it compiles and runs on all three

Re: [Lazarus] Lazarus 1.2

2014-03-20 Thread Antonio Fortuny
Thanks again Mattias. Forget about all trouble. In fact it was a very tiny typing error in the compiler search path revealed by the -vut but invisible otherwise. This solved the problem. 8-) Remaking the project worked too, but it is longer. :-[ This false problem apart, all three platforms

[Lazarus] linux linking

2014-03-18 Thread Antonio Fortuny
Hi Folks. I've ported a console project from win32 to Linux x86_64, Lazarus 1.0.12 On win32 it compiles and runs OK. On Linux, compilation fails with a linker error: Error: Error while linking and nothing else. Any track to follow ? Is it any way to display more diagnostics ? Thanks, Antonio.

Re: [Lazarus] linux linking (Solved)

2014-03-18 Thread Antonio Fortuny
Le 18/03/2014 14:09, Antonio Fortuny a écrit : Hi Folks. I've ported a console project from win32 to Linux x86_64, Lazarus 1.0.12 On win32 it compiles and runs OK. On Linux, compilation fails with a linker error: Error: Error while linking and nothing else. Any track to follow ? Is it any way

Re: [Lazarus] linux linking (Solved)

2014-03-18 Thread Antonio Fortuny
Le 18/03/2014 16:38, Fabio Luis Girardi a écrit : Units missing? Which units? ideintfpackage and LCLIntf unit. This solved the compilation error. 2014-03-18 12:23 GMT-03:00 Antonio Fortuny a.fort...@sitasoftware.lu mailto:a.fort...@sitasoftware.lu: Le 18/03/2014 14:09, Antonio

Re: [Lazarus] Lazarus Wiki

2014-03-14 Thread Antonio Fortuny
Le 20/01/2014 16:06, Antonio Fortuny a écrit : Hi Folks. I need some help (only once) on how to make a new topic in the Lazarus wiki and link it to whatever page sounds the best to be its ancestor. This concerns a new object I made (TFPTimer based, thread safe and thread independant). I'll

Re: [Lazarus] Lazarus Wiki

2014-03-14 Thread Antonio Fortuny
Le 14/03/2014 13:26, Reinier Olislagers a écrit : On 14/03/2014 12:57, Antonio Fortuny wrote: Le 20/01/2014 16:06, Antonio Fortuny a écrit : Sorry to come back to t his thread but I'm still suck on how to create a new page in the Lazarus Wiki. Nothing found on help on how to create a new page

Re: [Lazarus] Lazarus Wiki

2014-03-14 Thread Antonio Fortuny
Le 14/03/2014 14:46, Dmitry Boyarintsev a écrit : On Fri, Mar 14, 2014 at 9:14 AM, Reinier Olislagers reinierolislag...@gmail.com mailto:reinierolislag...@gmail.com wrote: Be my guest ;) Here you go: http://postimg.org/image/5z642myqh/ Definitely yes !! This a damned good path explained

Re: [Lazarus] Lazarus Wiki

2014-03-14 Thread Antonio Fortuny
Hi all. I would like to thank you all for your help to solve this silly problem. My first real contribution to this very exciting project is on the way. The first page is on http://wiki.lazarus.freepascal.org/Yet_another_Running_Timer It is still under development, so be patient. Antonio.

Re: [Lazarus] Package

2014-03-11 Thread Antonio Fortuny
Le 10/03/2014 18:20, Mattias Gaertner a écrit : if Elapsed 5000 then Break; Inc(Elapsed, 50) end; FreeAndNil(FTH); end; inherited; This solves part of the problem. Thanks Mattias. :-) It was to obvious that I guess I was on another planet whent

Re: [Lazarus] Package

2014-03-11 Thread Antonio Fortuny
Le 11/03/2014 13:12, Mattias Gaertner a écrit : On Tue, 11 Mar 2014 08:37:14 +0100 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Le 10/03/2014 18:20, Mattias Gaertner a écrit : if Elapsed 5000

Re: [Lazarus] Package

2014-03-11 Thread Antonio Fortuny
Le 11/03/2014 13:37, Antonio Fortuny a crit: Yep ! Mattias you are my muse :-D After a careful reading of the code it appears that the internal thread created had this line in the constructor. FreeOnTerminate := True

[Lazarus] Qt4

2014-03-10 Thread Antonio Fortuny
Hi Fols. Last week I started to test QT4 with FPC-Lazarun on a Linux x86_64 : Lazarus 1.0.12, FPC 2.6.2 Now I have to do some changes in an active project and, when compiling, I get the following linker errors: /usr/bin/ld: warning: /home/sources/compiled/link.res contains output sections;

Re: [Lazarus] Qt4

2014-03-10 Thread Antonio Fortuny
Le 10/03/2014 10:49, Mattias Gaertner a crit: On Mon, 10 Mar 2014 10:23:01 +0100 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Hi Fols. Last week I started to test QT4 with FPC-Lazarun on a Linux x86_64 : Lazarus 1.0.12, FPC 2.6.2 Now I

[Lazarus] Package

2014-03-10 Thread Antonio Fortuny
Hi Folks. I've built my first Lazarus package. When it is dynamically created in a test program, it works as it is supposed to work. When I drop it onto a form and test it with code, looks OK. So far, so good. But when it try to remove the component from the form where it is has been dropped,

Re: [Lazarus] Howto dropdown the calendar of TDateEdit programmatically

2014-03-07 Thread Antonio Fortuny
Le 07/03/2014 15:07, John Landmesser a écrit : Hi, i want to dropdown the calendar of an DateEdit at start of my app, so the user will see what to do next. There is a DateEdit.Button.Clicḱ procedure and TCustomMaskEdit.DoButtonClick, but they don't show the calendar. Just do

Re: [Lazarus] Howto dropdown the calendar of TDateEdit programmatically

2014-03-07 Thread Antonio Fortuny
!! You're welcome :-) Well, this is only FPC-Lazarus magic actually. -- Antonio Fortuny Senior Software engineer 220, avenue de la Libert L

[Lazarus] IDE default font

2014-03-05 Thread Antonio Fortuny
Hi Folks. If I remember well, a discussion took place some weeks ago about the IDE fonts in Lazarus but I can't find it any more So there is my question: Is it possible to change the default font used by visual controls when they are dropped onto the form ? If answer is yes, how could I

Re: [Lazarus] TSQLQuery.ParamCheck

2014-03-03 Thread Antonio Fortuny
Le 01/03/2014 20:12, Kapibara Pas a écrit : Hi there! This is my first posting on the mailing list. Thank you for your work on Lazarus!! I have a question: An earlier revision of Lazarus had the ParamCheck property implemented for SQLQuery. In the latest trunk that property is gone and all

Re: [Lazarus] save the detail record to sqlite

2014-02-28 Thread Antonio Fortuny
Le 28/02/2014 10:09, Reinier Olislagers a écrit : However, I polished my crystal ball and my guess is that you forgot this step: http://wiki.lazarus.freepascal.org/MasterDetail#Adding_detail_records_with_the_right_foreign_key ... Thanks, Reinier Note: also posted on forum: I guess that your

Re: [Lazarus] save the detail record to sqlite

2014-02-28 Thread Antonio Fortuny
Le 28/02/2014 11:48, Reinier Olislagers a écrit : On 28/02/2014 11:43, Antonio Fortuny wrote: Mine desn't like polishing so I've built a bunch of rules for this kind of situation where updatable datasets are involved: - always assign an OnNewRecord event and dive the default value to all

Re: [Lazarus] What GetChildParent does in designer and reader?

2014-02-27 Thread Antonio Fortuny
Voilà, Tous les fichiers troisième génération sont en place selo les noms: pays_job.csv (2007 pour la France) Les nombres de lignes par fichier correspond à la seconde version J'ai sondé quelques fichiers: ils sont identiques entre versions 2 et 3. et sauf la Belgique job 2548 déjà mis. A.

[Lazarus] TRTLCriticalSection

2014-02-25 Thread Antonio Fortuny
Hi Folks. Lazarus 1.0.2, FPC 2.6.2, Win32 and Linux x86_64 Something goes wrong with TRTRCriticalSection. There is a difference between Windows and Linux. In a program which will run on Win32 and Linux x86_64, using threads and all this stuff I need to protect some code from multi-threading

Re: [Lazarus] TRTLCriticalSection

2014-02-25 Thread Antonio Fortuny
Le 25/02/2014 12:04, Sven Barth a écrit : Am 25.02.2014 11:22, schrieb Antonio Fortuny: Hi Folks. Lazarus 1.0.2, FPC 2.6.2, Win32 and Linux x86_64 Something goes wrong with TRTRCriticalSection. There is a difference between Windows and Linux. In a program which will run on Win32 and Linux

Re: [Lazarus] TRTLCriticalSection

2014-02-25 Thread Antonio Fortuny
Now I get it working on both platforms. Use InitCriticalSection and DoneCriticalsection (thanks Mattias) Using system.EnterCriticalSection and system.LeaveCriticalSection solves all the compilation problems and runs (thanks all) Thanks again Antonio. --- Ce courrier électronique ne

Re: [Lazarus] View Graphic File

2014-02-20 Thread Antonio Fortuny
Le 20/02/2014 07:43, Allan E. Registos a écrit : Hi all, A noob question, I have trouble trying to port an existing vb.net snippet to pascal. Can anyone provide a code snippet where we can download and view a file from a Database? A binary(jpeg/pdf file) was uploaded to a database table.

Re: [Lazarus] Detecting new connection

2014-01-31 Thread Antonio Fortuny
Le 31/01/2014 11:40, Santiago A. a écrit : Hello: I have a program on Laptop that when network is active (there is a WIFI, ie) must do some tasks (in fact check for updates). Is there any standard way to do so, without continuously pooling if it can connect to Internet? A standard way to

Re: [Lazarus] Lazarus Wiki

2014-01-24 Thread Antonio Fortuny
Le 21/01/2014 20:52, Johannes W. Dietrich a écrit : You could begin with http://wiki.lazarus.freepascal.org/Components_and_Code_examples#Packages.2FPrograms_for_FPC.2FLazarus_.28not_hosted_here.29 Yeah, right. But, hem, how to create a new page into the wiki ? :-[ Antonio J. W. D. -- -- --

[Lazarus] Lazarus Wiki

2014-01-20 Thread Antonio Fortuny
Hi Folks. I need some help (only once) on how to make a new topic in the Lazarus wiki and link it to whatever page sounds the best to be its ancestor. This concerns a new object I made (TFPTimer based, thread safe and thread independant). I'll embed it into a native Lazarus conventional package

Re: [Lazarus] Threads and Libraries (dll and so)

2014-01-17 Thread Antonio Fortuny
Le 17/01/2014 12:53, Michael Van Canneyt a écrit : On Fri, 17 Jan 2014, Antonio Fortuny wrote: Hi All. Maybe not a Lazarus/FPC specific question but development whill be done using Lazarus/FPC. I wonder if I can build an application (service) having multiple threads running (Indy TCP/IP

Re: [Lazarus] File Download using INDY 10 with Lazarus with Progress bar

2014-01-17 Thread Antonio Fortuny
Le 17/01/2014 13:21, sanmiolade a écrit : Hello Guys , I need sample lazarus code using INDY to download a File from the internet Have a look at http://wiki.freepascal.org/Indy_with_Lazarus Indy SVN server: http://www.indyproject.org/sockets/download/svn.en.aspx I also want to show a

Re: [Lazarus] Threads and Libraries (dll and so)

2014-01-17 Thread Antonio Fortuny
Vrey interesting indeed. I agree with Marcos on his last remark. I'm concerned with multi-threading from a long time now and I'm used to avoid global vars in any case. Reading your answers I'm more strongly convinced that this position should be the master rule when dealing with threads. But

Re: [Lazarus] TFPTimer, Linux

2014-01-17 Thread Antonio Fortuny
DaemonApp works using threads. TFPTimer is not usable in threads other than the main thread. Right. So I made my own Timer based on the TFPTimer. Almost the same code except that the Synchronize(@EventProc) disapeared in my code and the EventProc is called immediately. Another little feature

Re: [Lazarus] TFPTimer, Linux

2014-01-17 Thread Antonio Fortuny
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Antonio Fortuny Senior Software engineer 220, avenue de la Libert L-4602

[Lazarus] Linker errors

2014-01-15 Thread Antonio Fortuny
Hi Folks. In a TDaemon project running nicely since beginning of last year, I have added a TTimer to execute periodically an internal control procedure. I then added a TTimer component, the unit ExtCtrls in the uses clause, the code of the TTimer event, compile and ... nothing: linker fails

Re: [Lazarus] Linker errors

2014-01-15 Thread Antonio Fortuny
I forgot to be more precise: embedding the same TDaemon code into a normal application using a front end display the code compiles without problems Of courese in this case, the daemon register procedures are conditionally surrounded by IFDEFs and are not compiled under the gui application.

Re: [Lazarus] Linker errors

2014-01-15 Thread Antonio Fortuny
Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Antonio Fortuny Senior Softwar

Re: [Lazarus] Linker errors

2014-01-15 Thread Antonio Fortuny
Le 15/01/2014 10:26, Michael Van Canneyt a écrit : On Wed, 15 Jan 2014, Antonio Fortuny wrote: Le 15/01/2014 10:08, leledumbo a écrit : Whenever you have `undefined reference to WSRegisterXXX`, you're missing Interfaces unit in the .lpr. Sometimes package that registers custom components

Re: [Lazarus] Linker errors

2014-01-15 Thread Antonio Fortuny
Le 15/01/2014 10:26, Michael Van Canneyt a écrit : On Wed, 15 Jan 2014, Antonio Fortuny wrote: Le 15/01/2014 10:08, leledumbo a écrit : Whenever you have `undefined reference to WSRegisterXXX`, you're missing Interfaces unit in the .lpr. Sometimes package that registers custom components

Re: [Lazarus] Linker errors

2014-01-15 Thread Antonio Fortuny
Le 15/01/2014 10:26, Michael Van Canneyt a écrit : On Wed, 15 Jan 2014, Antonio Fortuny wrote: Le 15/01/2014 10:08, leledumbo a écrit : Whenever you have `undefined reference to WSRegisterXXX`, you're missing Interfaces unit in the .lpr. Sometimes package that registers custom components

[Lazarus] TFPTimer, Linux

2014-01-15 Thread Antonio Fortuny
Hi Folks. Following a Michael advice I changed a TTimer by an TFPTime component in a Linux daemon application but the latter doesn't work. There is the code snippet of the TFPTime OnTimer event: procedure TDaemon1.ThreadControlTimerTimer(Sender: TObject); var Res: Boolean; begin // se

Re: [Lazarus] Win services

2013-12-12 Thread Antonio Fortuny
Le 11/12/2013 16:23, Reinier Olislagers a écrit : On 11/12/2013 16:17, Antonio Fortuny wrote: Maybe the wiki page (http://wiki.freepascal.org/ServiceManager) could be adapted to be more precise. Looking forward to *your* updates. (hint, HINT, *HINT*!) rantAll well and good that only

[Lazarus] Win services

2013-12-11 Thread Antonio Fortuny
Hi Folks. I'am in trouble when attempting to stop a Windows service using the TServiceManager component. The program runs into a Vista-32 box, the Lazarus IDE runs in an administrator user console: it has been started as d:...\Lazarus my_project.lpi When I run the program and do a step by

Re: [Lazarus] Win services

2013-12-11 Thread Antonio Fortuny
Le 11/12/2013 14:38, Michael Van Canneyt a écrit : On Wed, 11 Dec 2013, Antonio Fortuny wrote: Hi Folks. I'am in trouble when attempting to stop a Windows service using the TServiceManager component. The program runs into a Vista-32 box, the Lazarus IDE runs in an administrator user

Re: [Lazarus] Win services

2013-12-11 Thread Antonio Fortuny
Sorry all, it is my fault. In fact, when I use the commande net start servicenape servicenape stands for the display name and it works every day. This time I tried: sc stop my_service with the same name and I receive a Windows error telling me that service has not been started, but I'm pretty

Re: [Lazarus] Win services

2013-12-11 Thread Antonio Fortuny
Le 11/12/2013 16:23, Reinier Olislagers a crit: On 11/12/2013 16:17, Antonio Fortuny wrote: Maybe the wiki page (http://wiki.freepascal.org/ServiceManager) could be adapted to be more precise. Looking forward to *your* updates

[Lazarus] Linux service

2013-11-27 Thread Antonio Fortuny
Hi Folks. I have created a service which has to run into Windows and Linux servers. The program runs OK on both OS and the service runs nicely in Windows (32 and 64). I'm only a little bit stuck onto an UBUNTU platform. I've managed to launch and stop the service on an OpenSuse platform

Re: [Lazarus] Linux service

2013-11-27 Thread Antonio Fortuny
Le 27/11/2013 15:06, Michael Van Canneyt a écrit : On Wed, 27 Nov 2013, Patrick Chevalley wrote: Hi, To enable your program to react to signal you need to use fpSigAction. See here for usage: http://www.freepascal.org/docs-html/rtl/baseunix/fpsigaction.html Instead of SigUsr1 in the

Re: [Lazarus] TForm.ModalResult := mrOk problem

2013-11-26 Thread Antonio Fortuny
Le 25/11/2013 16:33, FreeMan a écrit : on /lazarus/lcl/forms.pp line 662: property ModalResult : TModalResult read FModalResult write FModalResult; TCustomForm class property. its just variable on virtualbox system: I add TButton on form and TButton.ModalResult set to MrOk. and click to

Re: [Lazarus] newbie question: tsqlquery; primarykey; insert.

2013-11-26 Thread Antonio Fortuny
Le 26/11/2013 16:02, Kovács László a écrit : Hi dear list members. I'm new here. Approximately 17 years ago I worked as a sysadmin, gave every day support for 70 peoples how to use their computers. I also made numerous small apps, to help the work of the firm. That time I did it with Delphi

Re: [Lazarus] Program version

2013-11-07 Thread Antonio Fortuny
is almost self explanatory but there improvements can be made as well. Antonio. unit uProgramVersion; { Author: Antonio Fortuny (a(DOT)fortuny(AT)sitasoftawre(DOT)lu ) Date: nov/2013 Company: Sita Software Location: Luxembourg www.sita.lu } interface uses Classes, {$IFNDEF LINUX} windows

[Lazarus] Program version

2013-11-06 Thread Antonio Fortuny
Hi Folks. Currently I can extract any Windows program version as far as it has been compilerd on a Win platform using either Delphi or Lazarus. I can do the same on a Linux program on a Linux platform as fas as far as the version has been embedde somewhere in the elf. So fa, so good. But do

Re: [Lazarus] Program version

2013-11-06 Thread Antonio Fortuny
Le 06/11/2013 14:41, Anton Kavalenka a écrit : The unit versionresource is part of package fcl-res I already use it for Linux with a Linux executable file Unit allow x-platform version resource extraction and parsing. rsrc:=TVersionResource.Create; Stream :=

Re: [Lazarus] Program version

2013-11-06 Thread Antonio Fortuny
ch avoids the ridiculous loop Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Antonio

[Lazarus] ComponentCount

2013-11-05 Thread Antonio Fortuny
Hi Folks. I've a problem with the TComponent.ComponentCount. Lazarus 1.0.12, FPC 2.6.2, WIn Vista32 Onto a TForm, at design time, I drop a TPanel (named MyPanel). Into MyPanel I drop half a dozen inside TPanel's. These have been dropped doing: 1.)select MyPanel first, 2.) then drop inside

Re: [Lazarus] ComponentCount

2013-11-05 Thread Antonio Fortuny
Le 05/11/2013 11:30, Mattias Gaertner a écrit : On Tue, 05 Nov 2013 11:14:55 +0100 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Hi Folks. I've a problem with the TComponent.ComponentCount. Lazarus 1.0.12, FPC 2.6.2, WIn Vista32 Onto a TForm, at design time, I drop a TPanel (named MyPanel

Re: [Lazarus] About TComboBox.Items.IndexOfName

2013-10-31 Thread Antonio Fortuny
Le 30/10/2013 22:41, FreeMan a écrit : Hello, I'm not sure is this bug? can some one test please? and if its but I'll make new issue. I have a TComboBox, I add 2 strings. I wanna do, if TmpStr is in the items, do it selected. I := EDT_User.Items.IndexOfName(TmpStr); EDT_User.ItemIndex:=

[Lazarus] WinCE and TIdleTimer

2013-10-16 Thread Antonio Fortuny
Hi Folks. Do you know if there is a chance that the TIdleTimer works in WinCE ? I have a project running on Win32 (Vista) and WinCE. On the Win32 platform, it woks like a charm. The timer OnTimer event fires when expected. No way to have it running on WinCE. Do you something about it ?

Re: [Lazarus] WinCE and TIdleTimer

2013-10-16 Thread Antonio Fortuny
Sorry, forgot to mention Lazarus 1.0.12 Win32 + WinCE Antonio. -- Antonio Fortuny Senior Software engineer 220, avenue de la Libert

[Lazarus] TApplicationProperties

2013-10-16 Thread Antonio Fortuny
Hi Folks. This problem may be related to my previous post. Wen running a WinCE project on a true Wince pocket machine (Motorola running Windows CE) I get an error message at the very beginning telling me that the class TapplicationProperties is not found =-O Maybe one of those Windows things

Re: [Lazarus] Graeme would love this, or not, I think

2013-10-14 Thread Antonio Fortuny
-- Antonio Fortuny Senior Software engineer 220, avenue de la Libert L-4602 Niederkorn Tel.: +352 58 00 93 - 93 www.sitasoftware.lu

Re: [Lazarus] Bug zeros out Pas files.

2013-10-08 Thread Antonio Fortuny
Hi Dave. I've had the same trouble some time ago and submitted the problem here. Unfortunately I'm not able to find the topic in this forum. It looks like it was before 2012. I wonder if the name of one of the files was concerned. Maybe one with blakns in the name. If I remember well I used

Re: [Lazarus] Bug zeros out Pas files.

2013-10-08 Thread Antonio Fortuny
Le 08/10/2013 10:14, Dave Coventry a écrit : Hi Antonio, The first one, with Lazarus-1.0.7-40379-fpc-2.6.0-20130224-win32, was with a very standard small App called 'pruler.lpi'. There was only one PAS unit and it was simply called 'Unit1.pas', so (in my case, anyway) there is unlikely to have

[Lazarus] What's behind an IP address

2013-09-25 Thread Antonio Fortuny
Hi Folks. This is specifically neither a Lazarus nor an FPC question but because I'm using a Lazarus project (along with Synapse) I ask this question: Having an IP address, which could be the best question to ask to that IP to know what's behind this address ? - Echo (ICMP 7) is not

Re: [Lazarus] Changing the cursor to hourglass then to default

2013-09-20 Thread Antonio Fortuny
Le 20/09/2013 15:47, Richard Mace a écrit : Hi, I am trying to change the cursor in my app to busy and then default, when it is going to be busy for a bit. I have changed to cursor := crHourglass and then back to crDefault at the end, but the cursor doesn't update. *Screen.*Cursor :=

Re: [Lazarus] Changing the cursor to hourglass then to default

2013-09-20 Thread Antonio Fortuny
@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Antonio Fortuny Senior Software engineer 220, avenue

Re: [Lazarus] Add package

2013-09-19 Thread Antonio Fortuny
Le 18/09/2013 17:03, Graeme Geldenhuys a crit: On 2013-09-18 11:09, Antonio Fortuny wrote: The package is Indy. On a different subject. What is the latest Indy version that works with FPC? I have 10.5.8 here, is that the latest

[Lazarus] Add package

2013-09-18 Thread Antonio Fortuny
Hi All. I run into a Lazarus package install that I've had some months ago but on Win64. This time problem araises into my new Lazarus 1.0.12 in a Linux x86_64 box The package is Indy. The package compilation itself runs OK, no problem. It hes been compiled with -fPIC because it is used in a

Re: [Lazarus] Add package

2013-09-18 Thread Antonio Fortuny
Colved. Recompile indylaz with -Ur option Found trick in http://www.mail-archive.com/lazarus@lists.lazarus.freepascal.org/msg18469.html -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] TTreenode.data

2013-09-17 Thread Antonio Fortuny
Le 17/09/2013 07:16, Richard Mace a écrit : Thanks Antonio, that worked fine. Goodness knows what I was originally doing! Nothing less I did when I started to play with pointers. 8-) Happy to be usefull. Antonio. Richard -- ___ Lazarus mailing

[Lazarus] DB aware components

2013-09-16 Thread Antonio Fortuny
Hi Folks. Is it normal that when a TDBGrid is dropped onto a TFrame (or descendant) the DataSource property cannot be assigned to a TSqlQuery dropped onto a TDataModule ? In other words, in the properties inspectior of the TDBGrid, the Datasource property shows nothing. The TDataModule is in

Re: [Lazarus] DB aware components

2013-09-16 Thread Antonio Fortuny
Le 16/09/2013 11:12, Mattias Gaertner a écrit : On Mon, 16 Sep 2013 10:52:08 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Hi Folks. Is it normal that when a TDBGrid is dropped onto a TFrame (or descendant) the DataSource property cannot be assigned to a TSqlQuery dropped onto

Re: [Lazarus] DB aware components

2013-09-16 Thread Antonio Fortuny
In the same way, travelling within a TFrame components doesn't work too. When clicking over any component on the TFrame using either TAB or any other arrow key has no effect. At runtime, it works. Antonio. -- ___ Lazarus mailing list

Re: [Lazarus] DB aware components

2013-09-16 Thread Antonio Fortuny
Same for TImageList. A TImageList is dropped onto a TDataModule, included in the interface uses, but a TToolBar does not see the TImagesList in the TDataModule. This breaks completely the porting from Delphi. I'm really very disapponted. I've made another test as explained in the Wiki page

Re: [Lazarus] TTreenode.data

2013-09-11 Thread Antonio Fortuny
Le 11/09/2013 07:51, Richard Mace a écrit : Hi, Can anyone give me an example of adding and retrieving an integer value to a TTreenode via it's data property please? I've tried the below, but it doesn't seem to work. Set: with

[Lazarus] package FCL

2013-09-05 Thread Antonio Fortuny
Hi Folks. I want to make some changes and additions to the unit bufdataset.pas incresing dataset possibilities. I've made the changes, compiled and tested using a dynamically created component. So far, so good. Now I want to incorporate the changes in the FCL package fcl-db Vista32, Lazarus

Re: [Lazarus] package FCL

2013-09-05 Thread Antonio Fortuny
The usual work flow is like this: You alter fpc units and tests them with some test program (ppu files in source\packages\fcl-db\units\...). OK When you are done, you build all fpc packages that depend on these ppus and copy all new files to the install folders (fpc\2.6.2\units\...). Done

Re: [Lazarus] package FCL

2013-09-05 Thread Antonio Fortuny
-- Antonio Fortuny Senior Software engineer 220, avenue de la Libert L-4602 Niederkorn Tel.: +352 58 00 93 - 93 www.sitasoftware.lu

Re: [Lazarus] package FCL

2013-09-05 Thread Antonio Fortuny
@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Antonio Fortuny Senior Software engineer 220, avenue de la

[Lazarus] Threads

2013-08-27 Thread Antonio Fortuny
Hi Folks. I'm facing a problem where threads are involved. I have a test program with a main form and using threads. When I run without threads, a Close button executed the TForm.Close method and the program terminates without problem. But when the threads (one or more) on closing, the

Re: [Lazarus] Threads

2013-08-27 Thread Antonio Fortuny
Sorry, I did forget some information: Win32: Lazarus 1.0.10 Linux: x86_64, Lazarus 1.0.8 The threads are defined in the main form. When the threads are used, the program does not hang, the main form gains control but the program does not terminate. Antonio. --

Re: [Lazarus] Threads

2013-08-27 Thread Antonio Fortuny
Le 27/08/2013 11:22, Michael Schnell a écrit : FTimeOut needs to be (a lot) lower than MAX_DELAY. Timeout runs from 100 to about 400 ms whereas MAX_DELAY. is fixed to 600 ms You should note that all threads send the last message to the Q which means that the Terminate has been trapped.

Re: [Lazarus] Shell notifications

2013-08-22 Thread Antonio Fortuny
Hi All. I've built some code which works fine under Linux. I'm now working on the Windows part using FindFirstChangeNotificationA to get the directory handle and ReadDirectoryChangesW to fetch events data. And I'm blocked there. The receiving buffer is set to 32kb. After changing a file

Re: [Lazarus] Shell notifications

2013-08-22 Thread Antonio Fortuny
See the code in attachment I changed the code a little bit adding the OVERLAP parameter and events to use the async method. Now the same function returns error code 6 Antonio. procedure TFrmMain.StartNotify(const FolderName: String); {$IFDEF LINUX} function

Re: [Lazarus] Shell notifications

2013-08-22 Thread Antonio Fortuny
Le 22/08/2013 14:06, Henry Vermaak a écrit : On Thu, Aug 22, 2013 at 01:49:28PM +0200, Sven Barth wrote: Am 22.08.2013 13:33, schrieb Antonio Fortuny: See the code in attachment I changed the code a little bit adding the OVERLAP parameter and events to use the async method. Now the same

[Lazarus] Shell notifications

2013-08-20 Thread Antonio Fortuny
Hi Folks. Do you know any component / tool to allow an application to be notified by the host OS when something changes in a disk directory ? Both Windows Linux. Thanks, Antonio. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Shell notifications

2013-08-20 Thread Antonio Fortuny
Le 20/08/2013 14:56, Henry Vermaak a écrit : On Tue, Aug 20, 2013 at 02:22:02PM +0200, Antonio Fortuny wrote: Hi Folks. Do you know any component / tool to allow an application to be notified by the host OS when something changes in a disk directory ? Both Windows Linux. inotify on linux

Re: [Lazarus] Shell notifications

2013-08-20 Thread Antonio Fortuny
Le 20/08/2013 15:46, Henry Vermaak a crit: On Tue, Aug 20, 2013 at 03:21:01PM +0200, Antonio Fortuny wrote: Le 20/08/2013 14:56, Henry Vermaak a crit : On Tue, Aug 20, 2013 at 02:22:02PM +0200, Antonio Fortuny wrote

[Lazarus] Forward declaration not solved

2013-08-09 Thread Antonio Fortuny
Hi Folks. Moving some units from Delphi to FPC-Lazarus, the FPC compiler tells me something I do not understand: Platform is Linux_x64, Lazarus 1.0.8 FPC 2.6.2, gtk2 Project options have been set to Obj Pascal (mdelphi removed) interface uses ... [324]function OpenLongFileName(const

Re: [Lazarus] Forward declaration not solved

2013-08-09 Thread Antonio Fortuny
Le 09/08/2013 10:22, Mattias Gaertner a écrit : clamav3.pas(324,12) Error: Forward declaration not solved OpenLongFileName(const AnsiString,const LongInt):QWord; Any comment ? Maybe there is a unit in your implementation uses section that redefines THandle. On the declaration (following Ctrl +

Re: [Lazarus] Forward declaration not solved

2013-08-09 Thread Antonio Fortuny
Le 09/08/2013 11:29, Sven Barth a crit: Am 09.08.2013 11:15, schrieb Antonio Fortuny: Le 09/08/2013 10:22, Mattias Gaertner a crit : clamav3.pas(324,12) Error: Forward declaration not solved

Re: [Lazarus] Forward declaration not solved

2013-08-09 Thread Antonio Fortuny
Le 09/08/2013 13:39, Michael Van Canneyt a écrit : On Fri, 9 Aug 2013, Mattias Gaertner wrote: Michael Van Canneyt mich...@freepascal.org hat am 9. August 2013 um 12:19 geschrieben: [...] OK, I think I can live with this. But I think it would be preferable to use a distinct type name.

Re: [Lazarus] Forward declaration not solved

2013-08-09 Thread Antonio Fortuny
Le 09/08/2013 15:02, Michael Van Canneyt a crit: On Fri, 9 Aug 2013, Antonio Fortuny wrote: Le 09/08/2013 13:39, Michael Van Canneyt a crit : On Fri, 9 Aug

Re: [Lazarus] Forward declaration not solved

2013-08-09 Thread Antonio Fortuny
Le 09/08/2013 15:21, Michael Van Canneyt a écrit : On Fri, 9 Aug 2013, Antonio Fortuny wrote: they will all end up referencing windows.THandle, but on other platforms they may be wildly different. For a developer as me, this is probably the best solution indeed. I do manipulate lots

Re: [Lazarus] Including and existing unit

2013-08-07 Thread Antonio Fortuny
Le 07/08/2013 07:29, Richard Mace a écrit : Hi All, I am writing to similar applications, and want the child app to use some of the units of the parent app. If the units for the child app are in a different directory from the parent app, what's the best way of using an include in the child

Re: [Lazarus] Including and existing unit

2013-08-07 Thread Antonio Fortuny
. Have a look into http://wiki.freepascal.org/IDE_Window:_Project_Options Antonio. On 7 Aug 2013 08:53, "Antonio Fortuny" a.fort...@sitasoftware.lu wrote: Le 07/08/2013 07:29, Richard Mace a crit :

Re: [Lazarus] Synapse SSH

2013-08-05 Thread Antonio Fortuny
Le 02/08/2013 17:22, Reinier Olislagers a écrit : On 02/08/2013 17:02, Antonio Fortuny wrote: I've copied the example from the wiki as a second test. I only set the pair login/password: same result as before (PAM autentication failed). Then I generated a pair of SSH2-rsa keys (1024) using

Re: [Lazarus] Synapse SSH

2013-08-05 Thread Antonio Fortuny
Le 05/08/2013 10:28, Ludo Brands a crit: On 08/05/2013 10:11 AM, Antonio Fortuny wrote: Le 02/08/2013 17:22, Reinier Olislagers a crit : On 02/08/2013 17:02, Antonio Fortuny wrote: I've copied

  1   2   3   4   >