Re: [fpc-pascal] How can I write a multithread program as simple as possible?

2015-05-30 Thread Antonio Sanguigni
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

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Antonio Sanguigni
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

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Antonio Sanguigni
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

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Antonio Sanguigni
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 -

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Antonio Sanguigni
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)

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Antonio Sanguigni
putLines.LoadFromStream(fMemStream); fOutputLines.SaveToFile('output.txt'); CommandOutput := fOutputLines.Text; faStringList.Assign(fOutputLines); fObjectList.Add(fOutputLines); Inc(fIndexOfOL); Inc(fIndexOfOL); // fOutputLines.Free;

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Antonio Sanguigni
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

Re: [fpc-pascal] TProcess does not work in Windows XP

2015-03-25 Thread Antonio Sanguigni
putLines.LoadFromStream(fMemStream); fOutputLines.SaveToFile('output.txt'); CommandOutput := fOutputLines.Text; faStringList.Assign(fOutputLines); fObjectList.Add(fOutputLines); Inc(fIndexOfOL); // fOutputLines.Free; end; --------- Than

[fpc-pascal] TProcess does not work in Windows XP

2015-03-24 Thread Antonio Sanguigni
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

[fpc-pascal] SVN Protocolo implementation

2015-03-21 Thread Antonio Sanguigni
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

Re: [fpc-pascal] Saving and reading TBlowfish crypted text

2015-03-17 Thread Antonio Sanguigni
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)

[fpc-pascal] Saving and reading TBlowfish crypted text

2015-03-17 Thread Antonio Sanguigni
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

Re: [fpc-pascal] GetPropValue and Unknown property

2009-06-23 Thread Antonio Sanguigni
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:/

[fpc-pascal] GetPropValue and Unknown property

2009-06-23 Thread Antonio Sanguigni
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

Re: [fpc-pascal] Class procedure assigned to object's event

2009-05-26 Thread Antonio Sanguigni
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

Re: [fpc-pascal] Class procedure assigned to object's event

2009-05-26 Thread Antonio Sanguigni
-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

[fpc-pascal] EInvalidOp Excpetion

2008-12-05 Thread Antonio Sanguigni
fTransferSpeed, -4)) + ' Kb'); writeln('Pacchetto: ' + IntToStr(TMultiFTP(ASubject).WrittenBytes)); end; end; -------- Antonio -- Antonio Sanguigni alias slapshot -- GioveLUG (Linux User G