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.
_
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@lists.fre
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
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
t;
> works fine. The child 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 juill
On Wed, Jul 20, 2011 at 9:12 AM, Jonas Maebe 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 maybe not become a
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} switc
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 f