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

Re: [Lazarus] Synapse SSH

2013-08-05 Thread Antonio Fortuny
Le 05/08/2013 11:07, Reinier Olislagers a crit: On 05/08/2013 10:11, 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

[Lazarus] Synapse SSH

2013-08-02 Thread Antonio Fortuny
Hi Folks. Having seen Synapse as a lightweight TCP component I have made a little test. Download the latest Synapse sources from http://synapse.ararat.cz/doku.php/download, unzip and make a basic component. Then I downloaded the cryptlib (3.4.2) from

Re: [Lazarus] Synapse SSH

2013-08-02 Thread Antonio Fortuny
Le 02/08/2013 16:16, Reinier Olislagers a crit: On 02/08/2013 15:48, Antonio Fortuny wrote: Having seen Synapse as a lightweight TCP component I have made a little test. Download the latest Synapse sources from http://synapse.ararat.cz/doku.php

Re: [Lazarus] Synapse SSH

2013-08-02 Thread Antonio Fortuny
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 puttygen and assigned the PrivateKey property to the private key file generated. Result is worse

Re: [Lazarus] Cross compiler

2013-08-01 Thread Antonio Fortuny
Le 31/07/2013 18:05, Sven Barth a écrit : On 31.07.2013 16:05, Antonio Fortuny wrote: Hi Sven. Finally I've got a functional new cross compiler compiled. Now I have two folders for fpc compiler: the one downloaded along with lazarus and the new cross compiler one build by me. After Lazarus

Re: [Lazarus] Cross compiler

2013-08-01 Thread Antonio Fortuny
Le 31/07/2013 18:02, Sven Barth a écrit : Compiling from Win64 to Win32 using a *cross compiler* is not supported. It's not only not supported, it's even disallowed in the makefiles... Hum. I have a *Win7 x64* with Lazarus 1.0.10 installed ready for cross compilation for Win64 Win32 WinCE

Re: [Lazarus] SSH

2013-08-01 Thread Antonio Fortuny
Le 01/08/2013 09:58, Michael Schnell a écrit : On 08/01/2013 07:48 AM, Richard Mace wrote: I am needing to add the ability to my Lazarus application to copy files to a linux server. Assuming that my application will be run on Windows, what's the best way of copying files to and from a Linux

Re: [Lazarus] Cross compiler

2013-08-01 Thread Antonio Fortuny
Le 01/08/2013 10:05, Sven Barth a écrit : Am 01.08.2013 09:56, schrieb Antonio Fortuny: Le 31/07/2013 18:02, Sven Barth a écrit : Compiling from Win64 to Win32 using a *cross compiler* is not supported. It's not only not supported, it's even disallowed in the makefiles... Hum. I have

Re: [Lazarus] Cross compiler

2013-08-01 Thread Antonio Fortuny
Le 01/08/2013 10:12, Sven Barth a écrit : Am 01.08.2013 10:05, schrieb Sven Barth: Am 01.08.2013 09:56, schrieb Antonio Fortuny: Le 31/07/2013 18:02, Sven Barth a écrit : Compiling from Win64 to Win32 using a *cross compiler* is not supported. It's not only not supported, it's even

Re: [Lazarus] Cross compiler

2013-07-31 Thread Antonio Fortuny
Hi Sven. Finally I've got a functional new cross compiler compiled. Now I have two folders for fpc compiler: the one downloaded along with lazarus and the new cross compiler one build by me. After Lazarus is installed, I launch it and it display the very first configuration screen for fpc

Re: [Lazarus] Behavior of Lazarus windows CE seems to differ from the windows mobile behavior

2013-07-30 Thread Antonio Fortuny
HI. I use Lazarus FPC to develop programs for WinCE since a few years (now on 1.0.8). Besides the usual beginner problems and errors, the whole system runs very well. I've had a lot of problems with forms too until I understood that the window stack does not work very well. I must mention

Re: [Lazarus] TButton, wordwrap

2013-07-05 Thread Antonio Fortuny
s mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Antonio Fortuny Senior Software engineer 220

Re: [Lazarus] IDE can't find various LCL unit

2013-07-03 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

[Lazarus] Checksum changed

2013-06-28 Thread Antonio Fortuny
Hi Folks. When compiling a project on a Win64 box I get the following errors: PPU Loading C:\lazarus\components\lazutils\lib\x86_64-win64\fileutil.ppu PPU Source: fileutil.pas not found PPU Source: fileutil.inc not found PPU Source: winfileutil.inc not found Recompiling FileUtil, checksum

Re: [Lazarus] Checksum changed

2013-06-28 Thread Antonio Fortuny
Le 28/06/2013 11:00, Mattias Gaertner a crit: On Fri, 28 Jun 2013 10:45:07 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Hi Folks. When compiling a project on a Win64 box I get the following errors: PPU Loading C:\lazarus\components

Re: [Lazarus] Library or Unit that can help to check network connectivity.

2013-06-25 Thread Antonio Fortuny
Le 25/06/2013 07:34, Eric Kom a écrit : Good day Dear, Please I am currently looking for library/unit that I can use to check network connectivity. Indy + TIdIcmpClient then Ping. Look at http://kumanov.com/docs/prog/indy/007395.html Indy 10.5.9 compiles OK with Lazarus+FPC Antonio. Hoping

Re: [Lazarus] Library or Unit that can help to check network connectivity.

2013-06-25 Thread Antonio Fortuny
Le 25/06/2013 10:24, Graeme Geldenhuys a crit: On 2013-06-25 08:29, Antonio Fortuny wrote: Indy + TIdIcmpClient then Ping. Not all systems on a network will reply to a ping test? I know my systems don't, because I disabled

[Lazarus] Package unit not found

2013-06-21 Thread Antonio Fortuny
Hi Folks. Got a problem in Lazarus (1.0.10) on a Linux x86_64 platform. The concerned package is Indy 10 Onthe Win32 platform, no problem: the project compiles and runs OK but on the Linux no way to figure out why the compiler does not find any of the package units. - package has been fresh

Re: [Lazarus] Package unit not found

2013-06-21 Thread Antonio Fortuny
Le 21/06/2013 15:08, waldo kitty a crit: On 6/21/2013 08:47, Antonio Fortuny wrote: [trim] One more thing in the project search path the portion pointing on the Indy compiled modules folder

Re: [Lazarus] Cross compiler

2013-06-12 Thread Antonio Fortuny
Le 27/05/2013 19:28, Sven Barth a écrit : Am 27.05.2013 14:51 schrieb Antonio Fortuny a.fort...@sitasoftware.lu: Because I develop for Win32, Win64, WinCE (win32 based) and Linux x86_64, to have one signle development platform would be a charm. I think this is still a dream

Re: [Lazarus] Accessing freedb.org using Indy's TIdHTTP Get method

2013-06-11 Thread Antonio Fortuny
Le 10/06/2013 21:49, Alejandro Gonzalo a écrit : Using fpc's cddb unit I was able to form the freedb query string from the CD in my drive (for The Great Bluesmen it was : 2b10b215 21 150 12557 26267 48645 60997 77047 91730 103462 117580 129470 145975 160670 185985 199220 213447 228725 250610

Re: [Lazarus] Thanks for Lazarus

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

Re: [Lazarus] SQLTransaction: Operation cannot be performed on an active transaction

2013-06-06 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] SQLTransaction: Operation cannot be performed on an active transaction

2013-06-04 Thread Antonio Fortuny
Le 04/06/2013 09:56, Eric Kom a écrit : Good day all; I am trying to set the Active property of TSQLTransaction to False so that I can avoid the above Read Error message: SQLTransaction: Operation cannot be performed on an active transaction The True value is currently set to True. Try

Re: [Lazarus] SQLTransaction: Operation cannot be performed on an active transaction

2013-06-04 Thread Antonio Fortuny
Le 04/06/2013 16:54, Eric Kom a écrit : On 04/06/2013 10:19, Antonio Fortuny wrote: Thanks, I did changed to Commit and then caNone before it solved the error, another error message pop up saying Access Violation. Anyway, the problem was solved. The above code its giving me a problem

[Lazarus] Cross compiler

2013-05-27 Thread Antonio Fortuny
Hi Folks. Because of my recent problems with Lazaus+FPC on win32, I'd like to try a cross-compilation of my project on a win64 platform targetting a win32 execution platform. I've downloaded the FPC sources 2.6.2 from the svn file fpcbuild-2.6.2.zip I then copied folders compiler, ide and

Re: [Lazarus] Cross compiler

2013-05-27 Thread Antonio Fortuny
Le 27/05/2013 11:47, Joost van der Sluis a écrit : On Mon, 2013-05-27 at 11:18 +0200, Antonio Fortuny wrote: I then copied folders compiler, ide and installer from fpcsrc from the zip file into the folder C:\lazarus\fpc\2.6.2\source Didn't touch the packages and 'rtl as they are up to date

Re: [Lazarus] Cross compiler

2013-05-27 Thread Antonio Fortuny
Well, it isn't straightforward and I will abandon the idea until I find a real full step-by-step method to install and a run a cross-compilation Lazarus system. I'm not a compiler developper so make it to run is anything but easy. I don't care if the procedure needs a lot of operations on a

Re: [Lazarus] Lazarus-FPC-Indy problem

2013-05-27 Thread Antonio Fortuny
Problem solved: trying to write into a pre-allocated buffer beyond the buffer length. Antonio. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] UTF8 compiling problem

2013-05-24 Thread Antonio Fortuny
Hi Folks. I've replaced today an old Lararus installation by the latest 1.0.8 and FPC 2.6.2 on a Win64 target. All needed packages recompiled and installed OK 8-) But when compiling a project which compiles without problems on a Win32 target (Laz 1.0.8 too) I get these compilation errors:

Re: [Lazarus] UTF8 compiling problem

2013-05-24 Thread Antonio Fortuny
Le 24/05/2013 10:25, Mattias Gaertner a écrit : On Fri, 24 May 2013 10:18:03 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Have you tried Run / Clean Up build files? Magic. ;-) Just cleaned project directories, not packages. If life's problems were so easy to resolve, everything

[Lazarus] Lazarus-FPC-Indy problem

2013-05-24 Thread Antonio Fortuny
Hi Folks. I'have already submitted this boring problem to the Indy's team on http://forums2.atozed.com/viewtopic.php?f=7t=26492p=32031#p32031. Because FPC or Lazarus could be involved, I post it here as well. The first post on Indy's forum is not too long and explains the problem so it will

Re: [Lazarus] Lazarus-FPC-Indy problem

2013-05-24 Thread Antonio Fortuny
Le 24/05/2013 11:37, Antonio Fortuny a écrit : Hi Folks. I'have already submitted this boring problem to the Indy's team on http://forums2.atozed.com/viewtopic.php?f=7t=26492p=32031#p32031. Because FPC or Lazarus could be involved, I post it here as well. The first post on Indy's forum

[Lazarus] Windows CE

2013-05-06 Thread Antonio Fortuny
Hi Folks. I have downloaded and installed the MS Microsoft® Windows® CE 5.0 Device Emulator. I have also defined a shared folder which is visible into the device emulator as a storage card in which I copy the programs developped using Lazarus. The projects have a build mode where the target

Re: [Lazarus] Windows CE

2013-05-06 Thread Antonio Fortuny
:59 AM, Antonio Fortuny a.fort...@sitasoftware.lu mailto:a.fort...@sitasoftware.lu wrote: Hi Folks. I have downloaded and installed the MS Microsoft® Windows® CE 5.0 Device Emulator. I have also defined a shared folder which is visible into the device emulator as a storage

Re: [Lazarus] FPC packagae

2013-05-03 Thread Antonio Fortuny
, 2 May 2013, Antonio Fortuny wrote: Hi Folks. For one of my projects I use the memdslaz package wich, in turn uses memds.pp which is part of the FPC package fcl-db. The target program has to run on arm-wince. To get a lazarus package compiled for win32 and/or wince it's easy, compilation target

Re: [Lazarus] FPC packagae

2013-05-03 Thread Antonio Fortuny
Le 03/05/2013 14:29, Michael Van Canneyt a écrit : On Fri, 3 May 2013, Antonio Fortuny wrote: I've a change in memds.pp and now it works as expected when using SaveToStream and LoadFromStream even when the source dataset is empty. I'd like now to compile the source of fcl-db for ARM-wince

Re: [Lazarus] FPC packagae

2013-05-03 Thread Antonio Fortuny
I solved the problem this way: - copy memds.pp into the project folder - complie the project: memds.o and ppu in the project's -FU folder - copy new .o and .ppu into fpc\2.6.1\units\i386-win32\fcl-db\ tests are OK. i'll do the same for arm/wince Antonio. Le 03/05/2013 15:03, Antonio Fortuny

[Lazarus] FPC packagae

2013-05-02 Thread Antonio Fortuny
Hi Folks. For one of my projects I use the memdslaz package wich, in turn uses memds.pp which is part of the FPC package fcl-db. The target program has to run on arm-wince. To get a lazarus package compiled for win32 and/or wince it's easy, compilation target depends on projetc target. But

Re: [Lazarus] FPC packagae

2013-05-02 Thread Antonio Fortuny
Le 02/05/2013 16:56, Michael Van Canneyt a écrit : It is likely that the arm-wince target was diabled, since ARM requires aligned memory access. To my knowledge, the memds package has not been tested/adapted for that. This is my first idea, you know. But I can assert that it runs on Win32,

Re: [Lazarus] RAD Studio XE4 Released?

2013-04-25 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] Event generator

2013-04-03 Thread Antonio Fortuny
Le 02/04/2013 18:35, Mattias Gaertner a écrit : What file count do you see? Files.count=11313 Check on your disk that Directory contains many classes.pp. /usr/share/fpcsrc/2.6.2/tests/test/units/classes /usr/share/fpcsrc/2.6.2/rtl/watcom/classes.pp /usr/share/fpcsrc/2.6.2/rtl/objpas/classes

Re: [Lazarus] Event generator

2013-04-03 Thread Antonio Fortuny
Le 03/04/2013 08:51, Reinier Olislagers a écrit : On 3-4-2013 8:38, Antonio Fortuny wrote: Le 02/04/2013 18:35, Mattias Gaertner a écrit : What values do you have under Active Target and FPC executable? Active target: TargetOS=Linux TargetCPU=x86_64 FPC executable? FPC executable: Compiler

Re: [Lazarus] Event generator

2013-04-03 Thread Antonio Fortuny
Sorry Guys. I have to apologize because I guess it is my fault. After the install process I have overwritten some of the config files in ~/.lazarus by other files coming from another Linux installation which works. Unfortunately the source installation was not exactly the same as the very new

Re: [Lazarus] Event generator

2013-04-03 Thread Antonio Fortuny
Bad news. I have unistalled and re-installed Lazarus again: lazarus-1.0.8-0.x86_64.rpm. ~/.lazarus removed Change some options of the editor to my usual requirements Recompile all needes packages. Load the project on which I'm currently working. Compile, rebuild: OK So far so good. Add a

Re: [Lazarus] Event generator

2013-04-03 Thread Antonio Fortuny
Another strange behaviour is that lots of types are not recognized: On my own units as well on Lazarus units, setting the cursor on the word TPanel using the key Ctrl does not undescore the TPanel and Ctrl+Left click has no effect. Even my own types are not known although the unit is the uses

Re: [Lazarus] Event generator

2013-04-03 Thread Antonio Fortuny
Le 03/04/2013 11:10, Mattias Gaertner a écrit : FPC executable: Compiler=/usr/bin./fpc Do you mean /usr/bin/fpc? yep Options= CompilerDate=18/03/2013 00:51:19 RealCompiler=/usr/lib64/fpc/2.6.2/ppcx64 RealCompilerDate=18/03/2013 00:51:19 RealTargetOS=linux RealTargetCPU=x86_64

Re: [Lazarus] Event generator

2013-04-03 Thread Antonio Fortuny
Le 03/04/2013 11:10, Mattias Gaertner a écrit : On Wed, 03 Apr 2013 10:36:48 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Bad news. I have unistalled and re-installed Lazarus again: lazarus-1.0.8-0.x86_64.rpm. ~/.lazarus removed Change some options of the editor to my usual

Re: [Lazarus] Event generator

2013-04-03 Thread Antonio Fortuny
Le 03/04/2013 11:14, Mattias Gaertner a écrit : On Wed, 03 Apr 2013 11:05:45 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Another strange behaviour is that lots of types are not recognized: On my own units as well on Lazarus units, setting the cursor on the word TPanel using the key

Re: [Lazarus] Event generator

2013-04-03 Thread Antonio Fortuny
Sorry Guys, I will have to leave for a while, I have to solve a very urgent problem. I'll be back soon. Antonio. Le 03/04/2013 12:46, Mattias Gaertner a écrit : Antonio Fortuny a.fort...@sitasoftware.lu hat am 3. April 2013 um 11:44 geschrieben: Le 03/04/2013 11:14, Mattias Gaertner a Ã

[Lazarus] Event generator

2013-04-02 Thread Antonio Fortuny
Hi Folks. I've installed Lazarus 1.0.8 and FPC 2..6.2 on two newly created Linux x86_64 VMs One is a OpenSuse 11.4 and the other one is a 12.2 Install on both machines was as I like to say when all runs well, the fingers in the sose and the hands in

Re: [Lazarus] Event generator

2013-04-02 Thread Antonio Fortuny
Le 02/04/2013 16:05, Howard Page-Clark a écrit : If you view your project in the Project Inspector, is the LCL shown as a required dependency? Yep, both are there: LCL and IndyLaz BTW, I've installed Lazarus 1.1 an,d FPC 2.6.0 on the 12.2: besides some IDE problems, project compiles and runs.

Re: [Lazarus] Event generator

2013-04-02 Thread Antonio Fortuny
Le 02/04/2013 16:07, Mattias Gaertner a écrit : Something is wrong with your installation of fpc and/or fpc-src. Please check via menu 'View / IDE internals / About FPC' and 'About IDE'. Mattias -- Looks fine, no error lines. Something special to look for ?

Re: [Lazarus] Event generator

2013-04-02 Thread Antonio Fortuny
On Tue, 02 Apr 2013 16:16:23 +0200 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Le 02/04/2013 16:07, Mattias Gaertner a écrit : Something is wrong with your installation of fpc and/or fpc-src. Please check via menu 'View / IDE internals / About FPC' and 'About IDE'. Mattias -- Looks fine

Re: [Lazarus] How to use data from stringlist in another form.

2013-03-27 Thread Antonio Fortuny
Le 26/03/2013 15:14, appjaws a écrit : I have 2 forms, form 1 calls form 2 on a buttonclick process. Form 2 loads a string list, operations are carried out and the stringlist is saved. on FormMain: ... implementation uses unit2; procedure TFrmMain.Button1Click(Sender: TObject); begin if

Re: [Lazarus] Fw: Re: One last ask for help

2013-03-21 Thread Antonio Fortuny
Hi Ricardo. As of my last experience (Datalogic, Motorola former Symbol models, all using WinCE) the scanner itself needs to be very carefully configured. AKAIK in all models I've tested, the barcode scanner sends the chars as if they were typed on the keyboard. Because of this it is

Re: [Lazarus] Fw: Re: One last ask for help

2013-03-21 Thread Antonio Fortuny
Le 21/03/2013 15:02, Arí Ricardo Ody a écrit : Hi Ricardo. --- Hi Antonio As of my last experience (Datalogic, Motorola former Symbol models, all using WinCE) the scanner itself needs to be very carefully configured. ---Can tell little bit more about this? Depends on each model. There should

Re: [Lazarus] Linux service

2013-03-19 Thread Antonio Fortuny
I finally succeded to manage the service. The basic developmment done in WIN32 has been preserved. I've now a unique source project compiling and running on WIN32 and LINUX. So far, so good. There is only one thing which worries me: when stopping the service (aka service ipserviced stop) the

Re: [Lazarus] Linux service

2013-03-19 Thread Antonio Fortuny
Le 19/03/2013 16:52, Antonio Fortuny a écrit : I finally succeded to manage the service. The basic developmment done in WIN32 has been preserved. I've now a unique source project compiling and running on WIN32 and LINUX. So far, so good. There is only one thing which worries me: when stopping

[Lazarus] Linux service

2013-03-15 Thread Antonio Fortuny
Hi Folks. I've a problem when launching a service in a Linuxbox (OpenSuse 12.1, VM under esxi). The service program has been first developped in Win32. It is installed without problem, then ran and stopped and finally uninstalled. All functions run well as I get the events into the log file

Re: [Lazarus] Linux service

2013-03-15 Thread Antonio Fortuny
1. Change this to use strace: startproc -p /var/run/ipservice/ipservice.pid -W /var/run/ipservice/ipservice.pid strace -f -o /tmp/start.log /usr/local/bin/ipservice -r -D -s /usr/local/bin/ipservice.conf Same behaviour, got a /tmp/start-man.log and start.log (very similar) 3983

Re: [Lazarus] Linux service

2013-03-15 Thread Antonio Fortuny
- the process is started and writes to the system log. You should see what happens in /var/log/syslog. /var/log/messages: Mar 15 11:14:29 linux-5yg5 ipservice: [Info] Daemon Sita - Pocket service current status: Start Pending Mar 15 11:14:29 linux-5yg5 ipservice: [Info] Failed to start daemon

Re: [Lazarus] Linux service

2013-03-15 Thread Antonio Fortuny
Le 15/03/2013 12:42, Michael Van Canneyt a écrit : On Fri, 15 Mar 2013, Antonio Fortuny wrote: - the process is started and writes to the system log. You should see what happens in /var/log/syslog. /var/log/messages: Mar 15 11:14:29 linux-5yg5 ipservice: [Info] Daemon Sita - Pocket

Re: [Lazarus] Linux service

2013-03-15 Thread Antonio Fortuny
The project source is in the attached tarball Antonio test.tar Description: Unix tar archive -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Linux service

2013-03-15 Thread Antonio Fortuny
Le 15/03/2013 13:48, Michael Van Canneyt a écrit : To your program's uses clause ? yes, all units refering to threads Did you define UseCThreads ? It is not automatically defined. yep; Added -dUseCThreads to Other of project options same behaviour and same messages in /var/log/messages

Re: [Lazarus] Error on first compilation of a legacy WinCe project

2013-03-13 Thread Antonio Fortuny
I think Felipe is right: project options -- build modes check the one with Wince as target depending on IDE version (I use 1.1) click on IDE macro values and change LCLWidgetType to WinCE or on the build mode tab change LCLWidgetType to WinCE Le 13/03/2013 02:04, Arí Ricardo Ody a écrit : Hi!

Re: [Lazarus] Error on first compilation of a legacy WinCe project

2013-03-13 Thread Antonio Fortuny
. This time do not forget to change the LCLWidgetType accordingly Do not forget either that all project options are different from one build mode to another. Cheers Ricardo - Original Message - From: Antonio Fortuny Sent: 03/13/13 05:55 AM To: lazarus@lists.lazarus.freepascal.org Subject

Re: [Lazarus] Error on first compilation of a legacy WinCe project

2013-03-12 Thread Antonio Fortuny
Le 12/03/2013 15:18, Arí Ricardo Ody a écrit : I downloaded and ran: lazarus-1.0.6-fpc-2.6.0-win32.exe lazarus-1.0.6-fpc-2.6.0-cross-arm-wince-win32 Installed sqlite3laz 0.4 in line Downloaded sqlite3.dll and sqlite3.def precompiled binaries for windows from http://www.sqlite.org/download.html

Re: [Lazarus] Error on first compilation of a legacy WinCe project

2013-03-12 Thread Antonio Fortuny
Sorry but the text of my answer was mixed inside your text. I wonder if the unit mentioned is used only by Win32. Differences between Win32 and WinCE must be managed depending on the apis used. The shlobj.pp does exist only in win32 folder. You should check whether the functions and procedures

Re: [Lazarus] How do Lazarus users handle exceptions in procedures which are running in data modules?

2013-03-06 Thread Antonio Fortuny
Le 05/03/2013 16:14, Frank Church a écrit : How do Lazarus users handle exceptions in procedures which are running in data modules? A lot of the guides and examples demonstrate raising exceptions, which generally display dialogs to the user that an exception has occurred. But what is the best

Re: [Lazarus] How do Lazarus users handle exceptions in procedures which are running in data modules?

2013-03-06 Thread Antonio Fortuny
IMHO if you always functions that have a boolean result and an output message parameter, you do not uses the power of Exceptions. Depends, depends... but you can use some public methods with boolean results but the private methods raises an exception if something was broken, then you catch the

Re: [Lazarus] TProcess

2013-02-22 Thread Antonio Fortuny
Le 21/02/2013 16:58, Sven Barth a écrit : On 21.02.2013 14:54, Antonio Fortuny wrote: I have found one way to launch a new process and it works. The solution uses CreateProcess whose parameters are set accordingly to MS specifications: read http://msdn.microsoft.com/en-us/library/ms885182

Re: [Lazarus] TProcess

2013-02-22 Thread Antonio Fortuny
Le 22/02/2013 11:16, Antonio Fortuny a écrit : In that case you should be able to use TProcess if you set the Options accordingly (no poNewProcessGroup, but poNewConsole instead). You can With these parameters, launching of the new process still fails with same error code: 87

[Lazarus] TProcess

2013-02-21 Thread Antonio Fortuny
Hi folks. I'm trying to launch a new process from a running program. This runs on a WinCE hand held computer. To achieve this I do in the calling program: with TProcess.Create(nil) do try CommandLine := wNewName; Options := [poNewProcessGroup]; Logger.Add(Format(' Pocket program

Re: [Lazarus] TProcess

2013-02-21 Thread Antonio Fortuny
I have found one way to launch a new process and it works. The solution uses CreateProcess whose parameters are set accordingly to MS specifications: read http://msdn.microsoft.com/en-us/library/ms885182.aspx In the TProcess.Execute, the parameters build for the call to CreateProcess must be

Re: [Lazarus] TProcess

2013-02-21 Thread Antonio Fortuny
Le 21/02/2013 16:58, Sven Barth a écrit : On 21.02.2013 14:54, Antonio Fortuny wrote: I have found one way to launch a new process and it works. The solution uses CreateProcess whose parameters are set accordingly to MS specifications: read http://msdn.microsoft.com/en-us/library/ms885182

Re: [Lazarus] Form event

2013-02-20 Thread Antonio Fortuny
Le 19/02/2013 19:34, Hans-Peter Diettrich a écrit : Antonio Fortuny schrieb: Hi folks. Do you know an event or any other trick I could use when a form re-gains control, i.e. is focused again ? Events OnShow, OnActivate fire only once after OnCreate. These were my candiates as well

Re: [Lazarus] Form event

2013-02-20 Thread Antonio Fortuny
Le 20/02/2013 11:36, Hans-Peter Diettrich a écrit : Antonio Fortuny schrieb: Le 19/02/2013 19:34, Hans-Peter Diettrich a écrit : Antonio Fortuny schrieb: Hi folks. Do you know an event or any other trick I could use when a form re-gains control, i.e. is focused again ? Events OnShow

[Lazarus] Form event

2013-02-19 Thread Antonio Fortuny
Hi folks. Do you know an event or any other trick I could use when a form re-gains control, i.e. is focused again ? Events OnShow, OnActivate fire only once after OnCreate. The form is brought to the foreground by the means of a MyForm.BringToFront once a OtherForm.ShowModal returns. The

Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-02-01 Thread Antonio Fortuny
Le 28/01/2013 13:16, Mattias Gaertner a écrit : Have you tried to use lazarus from svn? Yes. Downloaded last SVN trunk on /home/sources/lazarus (with sita user, using Gnome commander from svn.freepascal.org/svn/lazarus/trunk/) in a shell (myuser): sita@linux-5yg5:/home/sources/lazarus make

Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-02-01 Thread Antonio Fortuny
Le 01/02/2013 13:58, Mattias Gaertner a écrit : On Fri, 01 Feb 2013 10:21:00 +0100 Antonio Fortuny a.fort...@sitasoftware.lu wrote: Le 28/01/2013 13:16, Mattias Gaertner a écrit : Have you tried to use lazarus from svn? Yes. Downloaded last SVN trunk on /home/sources/lazarus (with sita

Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-02-01 Thread Antonio Fortuny
Your RELEASE environment variable is set. Clear it. RELEASE= make clean all OK, it works !! Thanks again Mattias But, because I wouldn't like to die stupid, would you be so kind to explain to me how this |@#µ$[!! environment variable has been set ? Antonio. Mattias --

Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny
Le 25/01/2013 09:42, Mattias Gaertner a écrit : Antonio Fortuny a.fort...@sitasoftware.lu hat am 25. Januar 2013 um 09:07 geschrieben: Yes, again. Hi Folks. On a Linux OpenSuse x86_64, Lazarus 1.1 37432 31/05/2012, FPC 2.6.0 After a successful compilation of Indy 10.5.9 package (latest SVN

Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny
On Mon, 28 Jan 2013 09:58:51 +0100 Antonio Fortuny wrote: Le 25/01/2013 09:42, Mattias Gaertner a écrit : Antonio Fortuny hat am 25. Januar 2013 um 09:07 geschrieben: Yes, again. Hi Folks. On a Linux OpenSuse x86_64, Lazarus 1.1 37432 31/05/2012, FPC 2.6.0 After a successful

Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny
After doing a chown -R myuser:users ./lazarus/* lazdaemon package compiles The install the package (from the package project: More-Install-build Lazarus), a lot of packages do compile OK; But then when Lazarus itself is about to compile: BOUM: Compiling package SynEdit 1.0 completed

Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny
I've done the same (chown myuser:users) on /usr/share/fpcsorc/* when trying to install the lazdaemon package: Fatal: Can't find unit system used by Lazarus Antonio. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny
Le 28/01/2013 10:54, Mattias Gaertner a écrit : It seems to be a persions problem. I guess I'll have to do the same for fpc units ans sources output folder Remember that installation couldn't be done unless sudo is used. All files are therefore owned by root. All system files are owned

Re: [Lazarus] Fatal: Can't find unit system used by Lazarus

2013-01-28 Thread Antonio Fortuny
Le 28/01/2013 11:30, Mattias Gaertner a écrit : On Mon, 28 Jan 2013 10:16:31 +0100 Mattias Gaertner nc-gaert...@netcologne.de wrote: [...] Close IDE, delete ~/.lazarus, uninstall lazarus, fpc, fpc-src. Install fpc-2.6.0-2.fc17.x86_64.rpm fpc-src-2.6.0-2.fc17.x86_64.rpm

<    1   2   3   4   >