Re: [lazarus] Making GTK Thread Safe

2008-01-05 Thread Al Boldi
Giuliano Colla wrote: Al Boldi ha scritto: For now, when you start a thread non-suspended, TThread.Execute(false), can you see the memory increase for your project1 app when checking with top? Then, when you TThread.WaitFor/TThread.Free, does it decrease? And by how much? Below is

Re: [lazarus] FastZLib: Illegal COFF Magic

2008-01-05 Thread Michael Van Canneyt
On Fri, 4 Jan 2008, Lukas Gradl wrote: Michael Van Canneyt schrieb: On Fri, 4 Jan 2008, Lukas Gradl wrote: Sorry to bother you again - but I'm just too stupid to get it to work. Using cygwin I did a gcc -c adler32.c then I renamed the created adler32.o to adler32.obj.

Re: [lazarus] FastZLib: Illegal COFF Magic

2008-01-05 Thread Lukas Gradl
Michael, thanks for your contiuous support! If you're coming to Tyrol one day feel free to collect a bunch of espressos at my place... *g* But as I've to talk to an external application using ZLibEx I have to use it too. going back to google again, Try to get the symbol names from the

Re: [lazarus] Making GTK Thread Safe

2008-01-05 Thread willem
Giuliano Colla wrote: Al Boldi ha scritto: For now, when you start a thread non-suspended, TThread.Execute(false), can you see the memory increase for your project1 app when checking with top? Then, when you TThread.WaitFor/TThread.Free, does it decrease? And by how much? Below is the

Re: [lazarus] Making GTK Thread Safe

2008-01-05 Thread willem
willem wrote: Giuliano Colla wrote: Al Boldi ha scritto: For now, when you start a thread non-suspended, TThread.Execute(false), can you see the memory increase for your project1 app when checking with top? Then, when you TThread.WaitFor/TThread.Free, does it decrease? And by how much?

[lazarus] accessing internal widgetset handle

2008-01-05 Thread Bee
Hi all, I'd like to create a gtk(2) app that has a non-rectangular form shape, using Lazarus of course. I know gtk(2) provides API for this purpose. The API requires a pointer to GTKWidget. But, I couldn't find any ways to get the widget pointer of Lazarus' form since Lazarus wraps the API

[lazarus] Scanlines again

2008-01-05 Thread Dominique Louis
Firstly, I'd like to propose a slight change to the scanlines example so that it is easier for developers to follow the code and to possibly incorporate bits of it into their own code. type TBGRA = packed record b, g, r, a : byte; end; PBGRA = ^TBGRA; TBGRAArray = array[ WORD ] of

Re: [lazarus] Making GTK Thread Safe

2008-01-05 Thread Giuliano Colla
willem ha scritto: willem wrote: Giuliano Colla wrote: Al Boldi ha scritto: For now, when you start a thread non-suspended, TThread.Execute(false), can you see the memory increase for your project1 app when checking with top? Then, when you TThread.WaitFor/TThread.Free, does it decrease?

Re: [lazarus] accessing internal widgetset handle

2008-01-05 Thread Mattias Gaertner
On Sun, 06 Jan 2008 01:13:52 +0700 Bee [EMAIL PROTECTED] wrote: Hi all, I'd like to create a gtk(2) app that has a non-rectangular form shape, using Lazarus of course. I know gtk(2) provides API for this purpose. The API requires a pointer to GTKWidget. But, I couldn't find any ways to get

Re: [lazarus] Making GTK Thread Safe

2008-01-05 Thread willem
Giuliano Colla wrote: willem ha scritto: willem wrote: Giuliano Colla wrote: Al Boldi ha scritto: For now, when you start a thread non-suspended, TThread.Execute(false), can you see the memory increase for your project1 app when checking with top? Then, when you

Re: [lazarus] Scanlines again

2008-01-05 Thread Mattias Gaertner
On Sat, 05 Jan 2008 19:14:51 + Dominique Louis [EMAIL PROTECTED] wrote: Firstly, I'd like to propose a slight change to the scanlines example so that it is easier for developers to follow the code and to possibly incorporate bits of it into their own code. type TBGRA = packed record

Re: [lazarus] accessing internal widgetset handle

2008-01-05 Thread Marc Weustink
Mattias Gaertner wrote: On Sun, 06 Jan 2008 01:13:52 +0700 Bee [EMAIL PROTECTED] wrote: Hi all, I'd like to create a gtk(2) app that has a non-rectangular form shape, using Lazarus of course. I know gtk(2) provides API for this purpose. The API requires a pointer to GTKWidget. But, I couldn't

Re: [lazarus] accessing internal widgetset handle

2008-01-05 Thread Marc Santhoff
Am Sonntag, den 06.01.2008, 01:13 +0700 schrieb Bee: BTW... which API should I use for this purpose, gtk or gdk? Both wrappers are provided in FPC/Lazarus and both provide similar API for the purpose. In term of Lazarus' LCL, what are the differences between both? Normally I'd tend to use

Re: [lazarus] Making GTK Thread Safe

2008-01-05 Thread Al Boldi
willem wrote: well I made 10 copy's of threadbug and run them in parallel. In my case libpthread does not allocate a 10 Mb memory block, because the 10 processes should allocate 100Mb of memory Top does show only a sligth increase in memory . On my kubuntu there are 145 processes allocated .