Re: [Lazarus] IUnknown and reference counting

2013-03-24 Thread Graeme Geldenhuys
On 2013-03-21 20:48, Hans-Peter Diettrich wrote: > Sven Barth schrieb: >> On 21.03.2013 21:14, Hans-Peter Diettrich wrote: >>> Sven Barth schrieb: >>> > Thanks for giving me insight into the crippled implementation of interfaces in FPC :-] Why crippled? >>> >>> When FPC does no

Re: [Lazarus] IUnknown and reference counting

2013-03-24 Thread Graeme Geldenhuys
On 2013-03-21 17:46, Hans-Peter Diettrich wrote: > > Thanks for giving me insight into the crippled implementation of > interfaces in FPC :-] Sorry, but you seem very confused. The default Interfaces "style" used by FPC is the COM-style interfaces. 100% compatible with Delphi. So I really do not

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Sven Barth
On 24.03.2013 21:09, Leonardo M. Ramé wrote: On 2013-03-24 20:44:50 +0100, Sven Barth wrote: On 24.03.2013 20:39, Leonardo M. Ramé wrote: Now your lBufSize contains the number of pixels, so only Inc(I, 1) should be correct. And for copying all data at once you now need to use "lBufSize * SizeOf

Re: [Lazarus] How to send Email from Lazarus program under Linux x86-64

2013-03-24 Thread silvioprog
2013/3/24 Paul Breneman > silvioprog wrote: > >> 2013/3/24 >> >> On 24-3-2013 15:19, Donald Ziesig wrote: >>> Hi All! I am trying to implement a program that will send emails to (a subset of) an application-specific roster. I found numerous references to synapse so

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Leonardo M . Ramé
On 2013-03-24 20:44:50 +0100, Sven Barth wrote: > On 24.03.2013 20:39, Leonardo M. Ramé wrote: > Now your lBufSize contains the number of pixels, so only Inc(I, 1) > should be correct. And for copying all data at once you now need to > use "lBufSize * SizeOf(Word)" instead. And the for-

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Sven Barth
On 24.03.2013 20:39, Leonardo M. Ramé wrote: Now your lBufSize contains the number of pixels, so only Inc(I, 1) should be correct. And for copying all data at once you now need to use "lBufSize * SizeOf(Word)" instead. And the for-loop variant would look like this: === code begin === for i := 0

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Leonardo M . Ramé
On 2013-03-24 20:29:44 +0100, Sven Barth wrote: > On 24.03.2013 20:14, Leonardo M. Ramé wrote: > >On 2013-03-24 20:02:38 +0100, Sven Barth wrote: > >>On 24.03.2013 19:57, Leonardo M. Ramé wrote: > >>>On 2013-03-24 19:46:09 +0100, Sven Barth wrote: > On 24.03.2013 19:30, Leonardo M. Ramé wrote:

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Sven Barth
On 24.03.2013 20:14, Leonardo M. Ramé wrote: On 2013-03-24 20:02:38 +0100, Sven Barth wrote: On 24.03.2013 19:57, Leonardo M. Ramé wrote: On 2013-03-24 19:46:09 +0100, Sven Barth wrote: On 24.03.2013 19:30, Leonardo M. Ramé wrote: On 2013-03-24 19:21:49 +0100, Sven Barth wrote: On 24.03.2013

Re: [Lazarus] How to send Email from Lazarus program under Linux x86-64

2013-03-24 Thread Paul Breneman
silvioprog wrote: 2013/3/24 On 24-3-2013 15:19, Donald Ziesig wrote: Hi All! I am trying to implement a program that will send emails to (a subset of) an application-specific roster. I found numerous references to synapse so I downloaded the source which includes a .lpk library (it is sever

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Sven Barth
On 24.03.2013 19:57, Leonardo M. Ramé wrote: On 2013-03-24 19:46:09 +0100, Sven Barth wrote: On 24.03.2013 19:30, Leonardo M. Ramé wrote: On 2013-03-24 19:21:49 +0100, Sven Barth wrote: On 24.03.2013 19:19, Joao Morais wrote: 2013/3/24 Leonardo M. Ramé : Hi, I'm copying a buffer of PWord to

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Leonardo M . Ramé
On 2013-03-24 19:46:09 +0100, Sven Barth wrote: > On 24.03.2013 19:30, Leonardo M. Ramé wrote: > >On 2013-03-24 19:21:49 +0100, Sven Barth wrote: > >>On 24.03.2013 19:19, Joao Morais wrote: > >>>2013/3/24 Leonardo M. Ramé : > Hi, I'm copying a buffer of PWord to a TMemoryStream using this code:

Re: [Lazarus] AdjustClientRect or GetLogicalClientRect: which one to override?

2013-03-24 Thread Mattias Gaertner
On Sun, 24 Mar 2013 12:19:24 +0100 Bart wrote: >[...] > Then the compiler told me (well, it did before, but I didn't notice) > that I forgot to add the override to AdjustClientRect. I fixed that > (and got rid of the overridden GetLogicalClientRect), and this also > works. > > So, here's my ques

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Sven Barth
On 24.03.2013 19:30, Leonardo M. Ramé wrote: On 2013-03-24 19:21:49 +0100, Sven Barth wrote: On 24.03.2013 19:19, Joao Morais wrote: 2013/3/24 Leonardo M. Ramé : Hi, I'm copying a buffer of PWord to a TMemoryStream using this code: lTmpBuff := lBuffer; I := 0; while I < lBufSize do begin l

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Leonardo M . Ramé
On 2013-03-24 19:21:49 +0100, Sven Barth wrote: > On 24.03.2013 19:19, Joao Morais wrote: > >2013/3/24 Leonardo M. Ramé : > >>Hi, I'm copying a buffer of PWord to a TMemoryStream using this code: > >> > >>lTmpBuff := lBuffer; > >>I := 0; > >>while I < lBufSize do > >>begin > >> lStream.Write(lTmp

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Sven Barth
On 24.03.2013 19:24, Mattias Gaertner wrote: On Sun, 24 Mar 2013 19:21:49 +0100 Sven Barth wrote: [...] Hi, I'm copying a buffer of PWord to a TMemoryStream using this code: inc(lTmpBuff, 1); inc(I, 1); What about: inc(lTmpBuff, SizeOf(PWord)); inc(I, SizeOf(PWord)); If

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Mattias Gaertner
On Sun, 24 Mar 2013 19:21:49 +0100 Sven Barth wrote: >[...] > >> Hi, I'm copying a buffer of PWord to a TMemoryStream using this code: > >>inc(lTmpBuff, 1); > >>inc(I, 1); > > > > What about: > > > > inc(lTmpBuff, SizeOf(PWord)); > > inc(I, SizeOf(PWord)); > > If lTmpBuff is decl

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Sven Barth
On 24.03.2013 19:19, Joao Morais wrote: 2013/3/24 Leonardo M. Ramé : Hi, I'm copying a buffer of PWord to a TMemoryStream using this code: lTmpBuff := lBuffer; I := 0; while I < lBufSize do begin lStream.Write(lTmpBuff^, SizeOf(PWord)); inc(lTmpBuff, 1); inc(I, 1); What about: i

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Leonardo M . Ramé
On 2013-03-24 15:19:11 -0300, Joao Morais wrote: > 2013/3/24 Leonardo M. Ramé : > > Hi, I'm copying a buffer of PWord to a TMemoryStream using this code: > > > > lTmpBuff := lBuffer; > > I := 0; > > while I < lBufSize do > > begin > > lStream.Write(lTmpBuff^, SizeOf(PWord)); > > inc(lTmpBuff, 1

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Joao Morais
2013/3/24 Leonardo M. Ramé : > Hi, I'm copying a buffer of PWord to a TMemoryStream using this code: > > lTmpBuff := lBuffer; > I := 0; > while I < lBufSize do > begin > lStream.Write(lTmpBuff^, SizeOf(PWord)); > inc(lTmpBuff, 1); > inc(I, 1); What about: inc(lTmpBuff, SizeOf(PWord));

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Leonardo M . Ramé
On 2013-03-24 19:02:18 +0100, Mattias Gaertner wrote: > On Sun, 24 Mar 2013 14:51:26 -0300 > Leonardo M. Ramé wrote: > > > lStream.WriteBuffer(lTmpBuff^, lBufSize*SizeOf(Word)); I've already tried that, but it doesn't work as expected. Maybe the problem is caused because lBufSize is a longint,

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Mattias Gaertner
On Sun, 24 Mar 2013 14:51:26 -0300 Leonardo M. Ramé wrote: > Hi, I'm copying a buffer of PWord to a TMemoryStream using this code: > > lTmpBuff := lBuffer; > I := 0; > while I < lBufSize do > begin > lStream.Write(lTmpBuff^, SizeOf(PWord));

[Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Leonardo M . Ramé
Hi, I'm copying a buffer of PWord to a TMemoryStream using this code: lTmpBuff := lBuffer; I := 0; while I < lBufSize do begin lStream.Write(lTmpBuff^, SizeOf(PWord)); inc(lTmpBuff, 1); inc(I, 1); end; As you can see, on each iteration,

Re: [Lazarus] New control TLvlGraphControl and new IDE package graph

2013-03-24 Thread Sven Barth
On 24.03.2013 17:55, Joao Morais wrote: 2013/3/24 Sven Barth : I've written a little tool some weeks ago which uses fcl-passrc to extract the unit dependencies and prints a dot file which can be processed by Graphviz. With this I wanted to check where we might have cycles and if we could fix the

Re: [Lazarus] New control TLvlGraphControl and new IDE package graph

2013-03-24 Thread Joao Morais
2013/3/24 Sven Barth : > I've written a little tool some weeks ago which uses fcl-passrc to extract > the unit dependencies and prints a dot file which can be processed by > Graphviz. With this I wanted to check where we might have cycles and if we > could fix their detection, but for now I've give

Re: [Lazarus] New control TLvlGraphControl and new IDE package graph

2013-03-24 Thread Sven Barth
On 24.03.2013 17:41, Mattias Gaertner wrote: On Sun, 24 Mar 2013 13:56:31 +0100 Sven Barth wrote: [...] Oooo... nice. It will be interesting to see how this component copes with the dependency graph of the compiler units... hehe ^^ Here is are two screenshots of the compiler units. The f

Re: [Lazarus] New control TLvlGraphControl and new IDE package graph

2013-03-24 Thread Mattias Gaertner
On Sun, 24 Mar 2013 13:56:31 +0100 Sven Barth wrote: >[...] > Oooo... nice. It will be interesting to see how this component copes > with the dependency graph of the compiler units... hehe ^^ Here is are two screenshots of the compiler units. The first shows the compiler/x86 directory, the

Re: [Lazarus] New control TLvlGraphControl and new IDE package graph

2013-03-24 Thread Juha Manninen
This is close to the reverse engineered class diagram tool that was discussed already a long time ago. I thought the most difficult part is automatic layout calculation and this component implements it quite perfectly. Cool! Still, it cannot be directly used for a class diagram because there not o

Re: [Lazarus] New control TLvlGraphControl and new IDE package graph

2013-03-24 Thread Mattias Gaertner
On Sun, 24 Mar 2013 16:31:10 +0100 Hans-Peter Diettrich wrote: > Mattias Gaertner schrieb: > > Hi, > > > > I added a new control TLvlGraphControl to package LazControls. It is a > > LCL control showing a graph as "level graph". Another name is "layered > > graph". > > > > See the screenshot and

Re: [Lazarus] New control TLvlGraphControl and new IDE package graph

2013-03-24 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: Hi, I added a new control TLvlGraphControl to package LazControls. It is a LCL control showing a graph as "level graph". Another name is "layered graph". See the screenshot and see here: http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#TLvlGraphControl

Re: [Lazarus] How to send Email from Lazarus program under Linux x86-64

2013-03-24 Thread silvioprog
2013/3/24 > On 24-3-2013 15:19, Donald Ziesig wrote: > > Hi All! > > > > I am trying to implement a program that will send emails to (a subset > > of) an application-specific roster. > > > > I found numerous references to synapse so I downloaded the source which > > includes a .lpk library (it is

Re: [Lazarus] How to send Email from Lazarus program under Linux x86-64

2013-03-24 Thread reinierolislagers
On 24-3-2013 15:19, Donald Ziesig wrote: > Hi All! > > I am trying to implement a program that will send emails to (a subset > of) an application-specific roster. > > I found numerous references to synapse so I downloaded the source which > includes a .lpk library (it is several years old). Ye

[Lazarus] How to send Email from Lazarus program under Linux x86-64

2013-03-24 Thread Donald Ziesig
Hi All! I am trying to implement a program that will send emails to (a subset of) an application-specific roster. I found numerous references to synapse so I downloaded the source which includes a .lpk library (it is several years old). When I tried to compile it under Lazarus 1.1, fpc 2.6.

Re: [Lazarus] New control TLvlGraphControl and new IDE package graph

2013-03-24 Thread Sven Barth
On 24.03.2013 13:08, Mattias Gaertner wrote: Hi, I added a new control TLvlGraphControl to package LazControls. It is a LCL control showing a graph as "level graph". Another name is "layered graph". See the screenshot and see here: http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#

Re: [Lazarus] New control TLvlGraphControl and new IDE package graph

2013-03-24 Thread Reinier Olislagers
On 24-3-2013 13:08, Mattias Gaertner wrote: > Hi, > > I added a new control TLvlGraphControl to package LazControls. It is a > LCL control showing a graph as "level graph". Another name is "layered > graph". > > See the screenshot and see here: > http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_r

[Lazarus] New control TLvlGraphControl and new IDE package graph

2013-03-24 Thread Mattias Gaertner
Hi, I added a new control TLvlGraphControl to package LazControls. It is a LCL control showing a graph as "level graph". Another name is "layered graph". See the screenshot and see here: http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#TLvlGraphControl Level graphs can visualize hu

[Lazarus] AdjustClientRect or GetLogicalClientRect: which one to override?

2013-03-24 Thread Bart
Hi, For a component I'm building I need to let the subcomponents know that (for aligning) they cannot use the entire client space. (It is a panel descendant with asymmetrical bevels). At first I tried AdjustClientRect but that did not work, so I tried GetLogicalClientRect. It all seems to work as

[Lazarus] test if the list is down, since 21.3.13 no mails?!!

2013-03-24 Thread John Landmesser
-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus