[Lazarus] LNet component Event vs thread ? faster or more reliable?

2008-08-28 Thread davy zhang
I know there are bunch of defects of thread programing and not every one like to use it but I am still wondering the real efficiency of these two model if we use multi-core cpu, which one is faster, or it just depends on the compiler's optimization~

Re: [Lazarus] LNet component Event vs thread ? faster or more reliable?

2008-08-28 Thread Michael Van Canneyt
On Thu, 28 Aug 2008, davy zhang wrote: I know there are bunch of defects of thread programing and not every one like to use it but I am still wondering the real efficiency of these two model if we use multi-core cpu, which one is faster, or it just depends on the compiler's

Re: [Lazarus] LNet component Event vs thread ? faster or more reliable?

2008-08-28 Thread Boian Mitov
Threads can lead to significant performance gain even on a single core, if used properly. Used incorrectly however they will lead to a slower execution if nothing else due to time lost in switching, cache flushing and thread synchronization. In multicore the performance gain can be huge, but

Re: [Lazarus] How can I improve my bitmap font drawing unit (attached) ?

2008-08-28 Thread Pavel Řezníček
Peter Williams wrote: Hi All, I'd like some advice about the attached unit, named uFixedWidthFonts.pas. It is designed to read 2-colour bitmaps of font character sets of different sizes, from files which are Windowz BMP format. For example, Chars_Lower_8x8.bmp -- this is a 320 x 56

[Lazarus] Auto scrollbar in forms, has the logic changed?

2008-08-28 Thread Luca Olivetti
With a recent svn (from last week) most of my forms acquired unwanted scrollbars. I corrected the problem by making them a couple of pixels bigger (though that made the contained components slightly off-center), but what was changed to cause it? Bye -- Luca Olivetti Wetron Automation Technology

Re: [Lazarus] Auto scrollbar in forms, has the logic changed?

2008-08-28 Thread Mattias Gaertner
On Thu, 28 Aug 2008 20:33:44 +0200 (CEST) Luca Olivetti [EMAIL PROTECTED] wrote: With a recent svn (from last week) most of my forms acquired unwanted scrollbars. I corrected the problem by making them a couple of pixels bigger (though that made the contained components slightly off-center),

Re: [Lazarus] How can I improve my bitmap font drawing unit (attached) ?

2008-08-28 Thread Felipe Monteiro de Carvalho
On 8/13/08, Peter Williams [EMAIL PROTECTED] wrote: My main question is: would I be better off using a TImageList?!? Can someone please post sample code. Note: I tried to run the TImageList example program for Lazarus... it compiles okay... but when run it does not find some of its files

Re: [Lazarus] Need some help with UpdateSQL in TSQLQuery and TMySQL50Connection

2008-08-28 Thread Howard Lee Harkness
After several rounds of non-answers here (seems the developers just assume everybody else should know the internals of everything, which is not realistic), a member of the Lazarus forum posted the answer to this problem. The ApplyUpdates call can be placed in the after event handlers. Fairly

Re: [Lazarus] Need some help with UpdateSQL in TSQLQuery and TMySQL50Connection

2008-08-28 Thread Joost van der Sluis
Op donderdag 28-08-2008 om 15:21 uur [tijdzone -0500], schreef Howard Lee Harkness: After several rounds of non-answers here (seems the developers just assume everybody else should know the internals of everything, which is not realistic), Assuming that we can understand your problem without

Re: [Lazarus] How can I improve my bitmap font drawing unit (attached) ?

2008-08-28 Thread Pavel Řezníček
Felipe Monteiro de Carvalho napsal(a): On 8/13/08, Peter Williams [EMAIL PROTECTED] wrote: My main question is: would I be better off using a TImageList?!? Can someone please post sample code. Note: I tried to run the TImageList example program for Lazarus... it compiles okay... but when run

Re: [Lazarus] Is this a new microsoft approach?

2008-08-28 Thread Pavel Řezníček
Jon Bertrand napsal(a): This is why I love mailing lists: I learn odd things in odd places. man hier Man I've been needing that for a long time. Thanks guys. And that's the oddity of all software and maybe all the social life too: Where do I ask where to ask? - Watch, try and wait until the