2015-05-30 6:28 GMT+02:00 Géza Kovacs Géza :
> Hi!
>
> Can anybody send me a "Pascal Multithreading tutorial for beginners"
> or similar document (if it exist)?
I like this one. Old but ideas are there.
http://thaddy.co.uk/threads/
Antonio
--
Antonio Sa
2015-03-25 17:26 GMT+01:00 Graeme Geldenhuys :
> On 2015-03-25 14:42, Antonio Sanguigni wrote:
> I'm affair there must be something weird in your WinXP setup then. I
> just tested again using WinXP and Maximus IDE (which uses the exact code
> I posted earlier). Attached is a s
bother all you.
Antonio
--
Antonio Sanguigni alias slapshot
--
Servizi informatici Windows e GNU/Linux- http://www.pieroni.biz
GioveLUG (Linux User Group) - http://www.giovelug.org
___
fpc
results and
> triggers an event, which eventually displays the output in a message window.
Thanks Graeme, works well ... in Windows 7 here. Same code in Windows
XP nothing to do. :O
Antonio
--
Antonio Sanguigni alias slapshot
-
ead of my actual
packaged FPC 2.6.4 ?
Thank you
Antonio
--
Antonio Sanguigni alias slapshot
--
Servizi informatici Windows e GNU/Linux- http://www.pieroni.biz
GioveLUG (Linux User Group)
putLines.LoadFromStream(fMemStream);
fOutputLines.SaveToFile('output.txt');
CommandOutput := fOutputLines.Text;
faStringList.Assign(fOutputLines);
fObjectList.Add(fOutputLines);
Inc(fIndexOfOL);
Inc(fIndexOfOL);
// fOutputLines.Free;
it. But debugging I can see the problem is not
in the loop. In Windows XP fNumBytes is always zero:
fNumBytes := fOurProcess.Output.Read((fMemStream.Memory +
fBytesRead)^, READ_BYTES);
so it seems the Read of fOurProcess.Output is not giving the expected results.
In Windows 7 it's ok.
Antonio
--
Antonio
putLines.LoadFromStream(fMemStream);
fOutputLines.SaveToFile('output.txt');
CommandOutput := fOutputLines.Text;
faStringList.Assign(fOutputLines);
fObjectList.Add(fOutputLines);
Inc(fIndexOfOL);
// fOutputLines.Free;
end;
---------
Than
em is Windows XP I mean, the same code seems does not produce any
results.
Any tip ?
Thank you
Antonio
--
Antonio Sanguigni alias slapshot
--
Servizi informatici Windows e GNU/Linux- http://www.pieroni.biz
GioveLUG (Linux User
update.
Thank you
Antonio
--
Antonio Sanguigni alias slapshot
--
Servizi informatici Windows e GNU/Linux- http://www.pieroni.biz
GioveLUG (Linux User Group) - http://www.giovelug.org
the trick, Graeme. Thank you so much !!
Antonio
--
Antonio Sanguigni alias slapshot
--
Servizi informatici Windows e GNU/Linux- http://www.pieroni.biz
GioveLUG (Linux User Group)
x27;;
s2 := TStringStream.Create(tr);
// s1.Free;
de := TBlowFishDeCryptStream.Create(key,s2);
{ 6 }
temp := de.ReadAnsiString; // TEReadError exception
WriteLn('decrypted: ' + temp);
Memo1.Lines.Text := temp;
de.Free;
s2.Free;
end;
--
Antonio Sanguigni alias slapshot
has a class with published properties but there
is not a {$M+} compiler directive for the RTTI. It is working now
after I added it.
Thanks again.
Antonio
--
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User Group) - http:/
istRec(AItem2),lsPropName);
[CUT]
It seems GetPropValue cannot find published property FileSize but the
writeln statement works well printing the exact value, and of course
the properties are published. Someone has an idea why that is not
working here ?
Thanks
Antonio
--
Antonio Sanguigni a
but searching on internet for delphi I
found this as a simple way to assign procedure of object to object's
event methods.
> Which FPC version are you using ?
I'm using 2.3.1 but I tried with 2.2.5 too and I have the same thing.
Antonio
--
Antonio Sanguigni alias slapshot
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Graeme Geldenhuys wrote:
> You need to assign the address of that method in objfpc mode using
the @ syntax.
>
> FTP.OnStatus:=callba...@statuscmd
> or was it...
> FTP.OnStatus:=...@callback.statuscmd
>
> Something like that. I can never reme
fTransferSpeed, -4)) + ' Kb');
writeln('Pacchetto: ' + IntToStr(TMultiFTP(ASubject).WrittenBytes));
end;
end;
--------
Antonio
--
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User G
17 matches
Mail list logo