[fpc-pascal] FPC 2.4.4 - Error: Illegal type conversion: Set of TMySet to Byte ... and vice versa

2011-10-13 Thread fred f
Hi guys, I am trying to compile my code which is compatible with Delphi and FPC 2.5.1+, but when I try to compile on Mac OS X with 2.4.4 I have error message: Error: Illegal type conversion: Set of TMyEnum to Byte and Error: Illegal type conversion: Byte to Set of TMyEnum The code is

[fpc-pascal] Syntax error with new FPC SVN

2011-09-30 Thread fred f
Hi guys, I have updated my FPC to SVN from today and when I try to compile my old code working with 2.5.1 from June writes: TYPE TByteSet = set of Byte(0)..Byte(7); Fatal: Syntax error, ; expected but ( found What has changed on syntax for this definition? PS: I use {$MODE Delphi} switch.

Re: RE : [fpc-pascal] Re: Linux: How to execute a program, but not to waituntil finishes

2011-07-20 Thread fred f
continues after the parent dies. Ludo -Message d'origine- De : fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] De la part de fred f Envoyé : vendredi 15 juillet 2011 16:14 À : FPC-Pascal users discussions Objet : Re: [fpc-pascal] Re: Linux

Re: [fpc-pascal] Re: Linux: How to execute a program, but not to wait until finishes

2011-07-20 Thread fred f
On Wed, Jul 20, 2011 at 9:12 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 20 Jul 2011, at 08:13, Marco van de Voort wrote: Probably you have to walk to some of the job control related commands which are also done during daemonization. Essentially you want to detach from parent, but

Re: [fpc-pascal] Re: Linux: How to execute a program, but not to wait until finishes

2011-07-19 Thread fred f
Hi, use this code, which starts itself, but when you close first started the second ends as well, what I don't want. with TProcess.Create (Application) do begin CommandLine := Application.ExeName + ' '; Execute; Free; end; Thanks. F. On Sat, Jul 16, 2011 at 5:49 AM, leledumbo

Re: [fpc-pascal] Re: Linux: How to execute a program, but not to wait until finishes

2011-07-15 Thread fred f
first of all, thanks for answers, but fpsystem('/my/path/to/exe '); works fine and it does what I want, but when my application ends then the started app over fpsystem is closed as well. Thanks in advance. F. ___ fpc-pascal maillist -

[fpc-pascal] Linux: How to execute a program, but not to wait until finishes

2011-07-04 Thread fred f
Hi all, How can I execute an external program, but to let my code continue. This doesn't work as I want and waits for finishing called app: ExecuteProcess (MyPathToExe, ' '); Thanks. Bye, Fred ___ fpc-pascal maillist -

[fpc-pascal] porting to 64bit

2011-06-24 Thread fred f
Hi, What's wrong on this condition to get the code running on 32 and 64bit: // Get pointer to varlength data. function GetVarLengthData(AVarLength:PAnsiChar):PAnsiChar; begin Result:=PAnsiChar(AVarLength){$IFDEF FPC}+SizeOf(PtrInt){$ELSE}+4{$ENDIF}; end; Thanks in advance. F.