Re: [fpc-pascal] fgl.TFPGMap / operator not overloaded for object types

2015-03-17 Thread Sven Barth
Am 17.03.2015 21:08 schrieb "Maciej Izak" : > > 2015-03-16 14:15 GMT+01:00 denisgolovan : >> >> BTW, could you upload it to GitHub to be able to pull new changes easier? >> It looks like it will be a long way to official FPC package. > > > Right :D, maybe FPC team don't need Generics.* :O > > https

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

2015-03-17 Thread Graeme Geldenhuys
On 2015-03-17 18:49, Ewald wrote: > The docs state that it is called automatically upon destruction: Correct, and I knew that. But I was explicitly looking at the code Antonio supplied. As I also mentioned, I normally use Read() and Write(), where he uses different methods. So looking at his code

Re: [fpc-pascal] fgl.TFPGMap / operator not overloaded for object types

2015-03-17 Thread Maciej Izak
2015-03-16 14:15 GMT+01:00 denisgolovan : > BTW, could you upload it to GitHub to be able to pull new changes easier? > It looks like it will be a long way to official FPC package. Right :D, maybe FPC team don't need Generics.* :O https://github.com/dathox/generics.collections Regards, Maciej

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

2015-03-17 Thread Ewald
On 17 Mar 2015, at 10:50, Graeme Geldenhuys wrote: > On 2015-03-16 20:05, Antonio Sanguigni wrote: >> en.WriteAnsiString(Memo1.Lines.Text); >> fs.WriteBuffer(Pointer(s1.DataString)^, length(s1.DataString)); >> en.Free; > > Maybe you decryption isn't working because the encrypted text you >

Re: [fpc-pascal] how to use signals in freepascal?

2015-03-17 Thread Michael Schnell
I suppose simpleipc will offer something for this. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2015-03-17 Thread Antonio Sanguigni
2015-03-17 10:50 GMT+01:00 Graeme Geldenhuys : > Maybe you decryption isn't working because the encrypted text you > created isn't complete. > > Normally you need to call Flush to write the remaining bytes before you > free the TBlowFishEncryptStream instance. That was the trick, Graeme. Thank yo

Re: [fpc-pascal] how to use signals in freepascal?

2015-03-17 Thread Xiangrong Fang
2015-03-17 17:06 GMT+08:00 Michael Schnell : > IPC between applications or within an application ? > > ​between application. ​ > If between application are both don in fpc and under your control ? > ​actually, multiple instance of the same application. ​ > > Lazarus or pure fpc ? > > ​pure fp

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

2015-03-17 Thread Graeme Geldenhuys
On 2015-03-16 20:05, Antonio Sanguigni wrote: >en.WriteAnsiString(Memo1.Lines.Text); >fs.WriteBuffer(Pointer(s1.DataString)^, length(s1.DataString)); >en.Free; Maybe you decryption isn't working because the encrypted text you created isn't complete. Normally you need to call Flush to

Re: [fpc-pascal] how to use signals in freepascal?

2015-03-17 Thread Michael Schnell
On 03/17/2015 10:02 AM, Xiangrong Fang wrote: I just need a simple IPC mechanism, without the hassle of e.g. a socket server.​ IPC between applications or within an application ? If between application are both don in fpc and under your control ? Lazarus or pure fpc ? -Michael

Re: [fpc-pascal] how to use signals in freepascal?

2015-03-17 Thread Michael Van Canneyt
On Tue, 17 Mar 2015, Xiangrong Fang wrote: 2015-03-17 16:28 GMT+08:00 Michael Schnell : As there are similar concepts implemented in fpc and Lazarus in a cross-platform manner, could you give the reason why you want too use platform-specific (low level) concepts like Unix-Signals

Re: [fpc-pascal] how to use signals in freepascal?

2015-03-17 Thread Xiangrong Fang
2015-03-17 16:28 GMT+08:00 Michael Schnell : > As there are similar concepts implemented in fpc and Lazarus in a > cross-platform manner, could you give the reason why you want too use > platform-specific (low level) concepts like Unix-Signals (or Windows > messages) ? (I don't doubt there are in

Re: [fpc-pascal] how to use signals in freepascal?

2015-03-17 Thread Michael Schnell
BTW.: I have done a seemingly working platform independent draft of an "active no-GUI Application" for Lazarus that allows to create "Applications" with TTimer and TThread.Synchronize() / TThread.Queue() without needing to link to a GUI for thinks that otherwise might suggest the use of Signals

Re: [fpc-pascal] how to use signals in freepascal?

2015-03-17 Thread Michael Schnell
As there are similar concepts implemented in fpc and Lazarus in a cross-platform manner, could you give the reason why you want too use platform-specific (low level) concepts like Unix-Signals (or Windows messages) ? (I don't doubt there are in some special projects.) -Michael

Re: [fpc-pascal] how to use signals in freepascal?

2015-03-17 Thread Michael Van Canneyt
On Tue, 17 Mar 2015, Xiangrong Fang wrote: You should not use this in fact, it is meant for internal use. To write a signal handler on unix, see http://www.freepascal.org/docs-html/rtl/baseunix/fpsigaction.html there is an example. ​I tried example57, it worked, bu

[fpc-pascal] Saving and reading TBlowfish crypted text

2015-03-17 Thread Antonio Sanguigni
Hi all, I need to encrypt TMemo.Lines and to write it to a file. Then, of course, I need the contrary operation I mean reading encrypted text on file, decrypt it to put into TMemo.Lines. Reading the Net I found lots of example code. Now, I'm able to to crypt and decrypt from stream, I'm able to