Re: [Lazarus] New LCL-CustomDrawn mailling list

2012-03-22 Thread Felipe Monteiro de Carvalho
On Wed, Mar 21, 2012 at 9:36 PM, Sven Barth pascaldra...@googlemail.com wrote: The only thing I miss currently (please correct me here if that changed already) are main menus (I don't know regarding other components). Basic support for Android native menus is easy, I even already have a

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Mark Morgan Lloyd
Hans-Peter Diettrich wrote: Mark Morgan Lloyd schrieb: But the bottom line is that the target audience is IBM mainframe hackers, used to handcrafting assembler and punching EBCDIC with their teeth. I don't want them to say Binaries bigger than 1Mb? NBG. I wonder how mainframe applications

Re: [Lazarus] SVN update conflicts

2012-03-22 Thread Mattias Gaertner
On Thu, 22 Mar 2012 02:55:05 +0100 Hans-Peter Diettrich drdiettri...@aol.com wrote: Mattias Gaertner schrieb: The Makefile.compiled must match the last compilation on the user machine. It doesn't make sense to use one from a compilation on a different machine. Using something from

Re: [Lazarus] New LCL-CustomDrawn mailling list

2012-03-22 Thread Marco van de Voort
On Wed, Mar 21, 2012 at 09:36:53PM +0100, Sven Barth wrote: While I agree with you about the suprising end of Windows Mobile I don't think that your time was that much wasted. Without your support for WinCE I would not have been able to write our company application using Lazarus and also

[Lazarus] Compile error

2012-03-22 Thread ajv
Hello, I installed fpc 2.6.0 as root on Mandriva Linux 32 bit using the rpm packages FPC is running fine using the fp ide. I installed the Lazarus sources from svn update 36210 - $ cd lazarus - $ make clean all After a while a compile error occurs :

Re: [Lazarus] Compile error

2012-03-22 Thread zeljko
On Thursday 22 of March 2012 09:03:08 ajv wrote: Hello, I installed fpc 2.6.0 as root on Mandriva Linux 32 bit using the rpm packages FPC is running fine using the fp ide. I installed the Lazarus sources from svn update 36210 - $ cd lazarus - $ make clean all After a while a compile

Re: [Lazarus] Is it possible to drag and drop a web browser URL into a Lazarus app?

2012-03-22 Thread Graeme Geldenhuys
On 20 March 2012 16:37, Frank Church vfclists@... wrote: Is it possible to drag and drop a web browser URL into a Lazarus app? Are there some controls with that facility? In fpGUI is is handled just like any other DND action. Simply register what mime-type the drop target must look out for.

Re: [Lazarus] New LCL-CustomDrawn mailling list

2012-03-22 Thread Sven Barth
Am 22.03.2012 07:32, schrieb Felipe Monteiro de Carvalho: On Wed, Mar 21, 2012 at 9:36 PM, Sven Barthpascaldra...@googlemail.com wrote: The only thing I miss currently (please correct me here if that changed already) are main menus (I don't know regarding other components). Basic support for

Re: [Lazarus] Compile error

2012-03-22 Thread Mattias Gaertner
On Thu, 22 Mar 2012 09:05:54 +0100 zeljko zel...@holobit.net wrote: On Thursday 22 of March 2012 09:03:08 ajv wrote: Hello, I installed fpc 2.6.0 as root on Mandriva Linux 32 bit using the rpm packages FPC is running fine using the fp ide. I installed the Lazarus sources from

Re: [Lazarus] New LCL-CustomDrawn mailling list

2012-03-22 Thread Sven Barth
Am 22.03.2012 08:54, schrieb Marco van de Voort: On Wed, Mar 21, 2012 at 09:36:53PM +0100, Sven Barth wrote: While I agree with you about the suprising end of Windows Mobile I don't think that your time was that much wasted. Without your support for WinCE I would not have been able to write our

Re: [Lazarus] New LCL-CustomDrawn mailling list

2012-03-22 Thread Graeme Geldenhuys
On 21 March 2012 19:19, Felipe Monteiro de Carvalho felipemonteiro.carvalho@... wrote: then wrote a non-native Canvas, then the Android backend, etc, etc, and I finally achieved what I always wanted since 2006 at least: Can the Lazarus IDE now be compiled with the CustomDrawn widgetset,

Re: [Lazarus] New LCL-CustomDrawn mailling list

2012-03-22 Thread Sven Barth
Am 22.03.2012 10:01, schrieb Graeme Geldenhuys: On 21 March 2012 19:19, Felipe Monteiro de Carvalho felipemonteiro.carvalho@... wrote: then wrote a non-native Canvas, then the Android backend, etc, etc, and I finally achieved what I always wanted since 2006 at least: Can the Lazarus IDE now

Re: [Lazarus] New LCL-CustomDrawn mailling list

2012-03-22 Thread Graeme Geldenhuys
On 22 March 2012 11:04, Sven Barth pascaldragon@ wrote: From what I know about the CustomDrawn widgetset it's still to early (see my mail regarding the menus). But this would definitely be very cool on X11 based systems and I hope that Felipe and Co. will make this possible :D OK,

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Graeme Geldenhuys
On 21 March 2012 12:42, Mark Morgan Lloyd markMLl.lazarus@ wrote: A program built using (some version of) Delphi comes to about 317Kb, but even with a manual strip the best I can do with Lazarus/FPC is pushing 3Mb. Now for domestic consumption I can live with that, but I don't think it

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Felipe Monteiro de Carvalho
On Wed, Mar 21, 2012 at 10:02 PM, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Can't see it in trunk. Is it from an optional package? No, it is part of the standard IDE. For me it is right under Project Options. -- Felipe Monteiro de Carvalho --

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Mark Morgan Lloyd
Felipe Monteiro de Carvalho wrote: On Wed, Mar 21, 2012 at 10:02 PM, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Can't see it in trunk. Is it from an optional package? No, it is part of the standard IDE. For me it is right under Project Options. I don't see it here, on trunk

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: On 21 March 2012 12:42, Mark Morgan Lloyd markMLl.lazarus@ wrote: A program built using (some version of) Delphi comes to about 317Kb, but even with a manual strip the best I can do with Lazarus/FPC is pushing 3Mb. Now for domestic consumption I can live with that,

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Sven Barth
Am 22.03.2012 11:06, schrieb Mark Morgan Lloyd: Felipe Monteiro de Carvalho wrote: On Wed, Mar 21, 2012 at 10:02 PM, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Can't see it in trunk. Is it from an optional package? No, it is part of the standard IDE. For me it is right under

Re: [Lazarus] [fpc-devel] Re: How to iterate through a TAvgLvlTree

2012-03-22 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Can I add a routine to access the AvgLvlTree as an array? To make it a better substitute to TFPList in objects which offer an indirect interface to the internal list, such as TLazAccessibleObject. My idea is defining: Index zero = Tree.FindLowest Indez

Re: [Lazarus] Memory corruption investigation

2012-03-22 Thread Felipe Monteiro de Carvalho
On Thu, Mar 22, 2012 at 1:13 AM, Mattias Gaertner nc-gaert...@netcologne.de wrote: Have you tried the keepreleased? I set it to true as the first item in my program code and also in an offending unit but couldnt see much of a difference. I suppose that I should look for which block contains

[Lazarus] Conditional compilation depending on Lazarus version?

2012-03-22 Thread Reinier Olislagers
Hi list, I'm sure I must be missing something. I want to compile some grid drawing stuff depending on whether a grid bug has been fixed - i.e. I want to do something like this: Had a look here: http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames ... but that only seems to

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Graeme Geldenhuys
On 22 March 2012 12:09, Mark Morgan Lloyd markMLl.lazarus@ wrote: NO. Definitely not, under the circumstances. As I've already said: what No problem, just thought I would mention it. BTW: [just for comparison sake] By default a simple test app - one Form, one Button and one Label, produces

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Mark Morgan Lloyd
Sven Barth wrote: Am 22.03.2012 11:06, schrieb Mark Morgan Lloyd: Felipe Monteiro de Carvalho wrote: On Wed, Mar 21, 2012 at 10:02 PM, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Can't see it in trunk. Is it from an optional package? No, it is part of the standard IDE. For me

Re: [Lazarus] New LCL-CustomDrawn mailling list

2012-03-22 Thread Mark Morgan Lloyd
Sven Barth wrote: Am 22.03.2012 08:54, schrieb Marco van de Voort: On Wed, Mar 21, 2012 at 09:36:53PM +0100, Sven Barth wrote: While I agree with you about the suprising end of Windows Mobile I don't think that your time was that much wasted. Without your support for WinCE I would not have

Re: [Lazarus] Memory corruption investigation

2012-03-22 Thread Felipe Monteiro de Carvalho
Ok, now I found who is causing the problem =) function TCDWidgetSet.RawImage_CreateBitmaps(const ARawImage: TRawImage; out ABitmap, AMask: HBitmap; ASkipMask: Boolean): Boolean; var NewData: PByte; lRawImage: TRawImage; lBitmap: TCDBitmap; begin {$ifdef VerboseCDBitmap}

Re: [Lazarus] New LCL-CustomDrawn mailling list

2012-03-22 Thread Felipe Monteiro de Carvalho
On Thu, Mar 22, 2012 at 10:11 AM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: From what I know about the CustomDrawn widgetset it's still to early (see my mail regarding the menus). But this would definitely be very cool on X11 based systems and I hope that Felipe and Co. will make this

Re: [Lazarus] Conditional compilation depending on Lazarus version?

2012-03-22 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: Hi list, I'm sure I must be missing something. I want to compile some grid drawing stuff depending on whether a grid bug has been fixed - i.e. I want to do something like this: Had a look here: http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames ...

Re: [Lazarus] New LCL-CustomDrawn mailling list

2012-03-22 Thread Sven Barth
Am 22.03.2012 11:44, schrieb Mark Morgan Lloyd: Sven Barth wrote: Am 22.03.2012 08:54, schrieb Marco van de Voort: On Wed, Mar 21, 2012 at 09:36:53PM +0100, Sven Barth wrote: While I agree with you about the suprising end of Windows Mobile I don't think that your time was that much wasted.

Re: [Lazarus] Conditional compilation depending on Lazarus version?

2012-03-22 Thread Sven Barth
Am 22.03.2012 11:32, schrieb Reinier Olislagers: Hi list, I'm sure I must be missing something. I want to compile some grid drawing stuff depending on whether a grid bug has been fixed - i.e. I want to do something like this: Had a look here:

Re: [Lazarus] Conditional compilation depending on Lazarus version?

2012-03-22 Thread Vincent Snijders
Op 22 maart 2012 11:50 heeft Mark Morgan Lloyd markmll.laza...@telemetry.co.uk het volgende geschreven: I don't think so, in the general case. The Lazarus revision number can probably be found as a .inc in the ide directory, and post about 0.9.24 you can get the LCL version at runtime, but

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Hans-Peter Diettrich
Mark Morgan Lloyd schrieb: Hans-Peter Diettrich wrote: Mark Morgan Lloyd schrieb: But the bottom line is that the target audience is IBM mainframe hackers, used to handcrafting assembler and punching EBCDIC with their teeth. I don't want them to say Binaries bigger than 1Mb? NBG. I wonder

Re: [Lazarus] Is it possible to drag and drop a web browser URL into a Lazarus app?

2012-03-22 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: On 20 March 2012 16:37, Frank Church vfclists@... wrote: Is it possible to drag and drop a web browser URL into a Lazarus app? Are there some controls with that facility? In fpGUI is is handled just like any other DND action. Simply register what mime-type the

Re: [Lazarus] SVN update conflicts

2012-03-22 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: How do you suppose that something compiled on a 64 bit Linux/gtk2 machine shall be used on a 32 bit Windows machine? Via cross compiling. Please stop kidding :-( How do the contributors to the repository know about *my* machine? Have you looked into a

Re: [Lazarus] Memory corruption investigation

2012-03-22 Thread Felipe Monteiro de Carvalho
Ok, I found it! =D Fixed in rev 36215. -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] SVN update conflicts

2012-03-22 Thread Mattias Gaertner
Hans-Peter Diettrich drdiettri...@aol.com hat am 22. März 2012 um 11:47 geschrieben: Mattias Gaertner schrieb: How do you suppose that something compiled on a 64 bit Linux/gtk2 machine shall be used on a 32 bit Windows machine? Via cross compiling. Please stop kidding :-( Sorry,

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Martin
On 22/03/2012 10:06, Mark Morgan Lloyd wrote: Felipe Monteiro de Carvalho wrote: On Wed, Mar 21, 2012 at 10:02 PM, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Can't see it in trunk. Is it from an optional package? No, it is part of the standard IDE. For me it is right under

Re: [Lazarus] Is it possible to drag and drop a web browser URL into a Lazarus app?

2012-03-22 Thread Graeme Geldenhuys
On 22 March 2012 11:59, Hans-Peter Diettrich DrDiettrich1@... wrote: Inter-process DD requires special assistance by the OS. IMO such operations are limited to drop file names, or other pure text, unless a platform offers something like OLE-DragDrop. That shouldn't be a problem for Lazarus

Re: [Lazarus] Conditional compilation depending on Lazarus version?

2012-03-22 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 22-3-2012 11:57, Sven Barth wrote: Am 22.03.2012 11:32, schrieb Reinier Olislagers: The revision is not possible (when using development versions you should try to use the latest revision), but for version you can use the unit LCLVersion. Just add it to the uses

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Mark Morgan Lloyd
Hans-Peter Diettrich wrote: Mark Morgan Lloyd schrieb: Hans-Peter Diettrich wrote: Mark Morgan Lloyd schrieb: But the bottom line is that the target audience is IBM mainframe hackers, used to handcrafting assembler and punching EBCDIC with their teeth. I don't want them to say Binaries

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Graeme Geldenhuys
On 22 March 2012 13:04, Felipe Monteiro de Carvalho wrote: Even smaller then fpgui because LCL-CustomDrawn has it's own text rendering system =) Interesting, but unfortunately it seems LCL-CustomDrawn is still far from real-world usage, so I don't think it can be counted (yet). From what I

Re: [Lazarus] Conditional compilation depending on Lazarus version?

2012-03-22 Thread Sven Barth
Am 22.03.2012 13:28, schrieb Mark Morgan Lloyd: Sven Barth wrote: Am 22.03.2012 11:32, schrieb Reinier Olislagers: I realize that the code above will be compiled by FPC, not Lazarus; perhaps it is possible to set an environment variable LAZARUSREVISION and/or LAZARUSVERSION and get these

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Felipe Monteiro de Carvalho
On Thu, Mar 22, 2012 at 1:29 PM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Interesting, but unfortunately it seems LCL-CustomDrawn is still far from real-world usage, so I don't think it can be counted (yet). From what I have read, it doesn't seem feature complete or stable. eg: just

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Graeme Geldenhuys
On 22 March 2012 13:04, Felipe Monteiro de Carvalho wrote: Even smaller then fpgui because LCL-CustomDrawn has it's own text rendering system =) But can it do this? ;-) [see attached screenshot] -- Regards,   - Graeme - ___ fpGUI - a

Re: [Lazarus] New LCL-CustomDrawn mailling list

2012-03-22 Thread Felipe Monteiro de Carvalho
On Thu, Mar 22, 2012 at 9:09 AM, Sven Barth pascaldra...@googlemail.com wrote: There is already work going on for an Android target. I don't know how well it comes along though. Are you sure that there is work going on on this? Could you point at any revisions? -- Felipe Monteiro de Carvalho

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Graeme Geldenhuys
On 22 March 2012 14:49, Felipe Monteiro de Carvalho wrote: Could you show me the output of locate .ttf ? (a stripped down version ideally with each dir occuring only once) I zipped the output to make it smaller. Sorry, I have no idea how to filter the output to only show unique directory

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Marcos Douglas
2012/3/22 Graeme Geldenhuys graemeg.li...@gmail.com: On 22 March 2012 13:04, Felipe Monteiro de Carvalho wrote: Even smaller then fpgui because LCL-CustomDrawn has it's own text rendering system =) But can it do this?  ;-) [see attached screenshot] WOW!!! clap-clap-clap! Marcos Douglas

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Graeme Geldenhuys
On 22 March 2012 15:03, Marcos Douglas wrote: WOW!!! clap-clap-clap! :-) I wish I could take all the credit, but I can't. Milano did some excellent work with AggPas. I then incorporated it into fpGUI as one of the standard canvas classes (and made sure it's 100% backward compatible with the

Re: [Lazarus] Conditional compilation depending on Lazarus version?

2012-03-22 Thread Mark Morgan Lloyd
Sven Barth wrote: Am 22.03.2012 13:28, schrieb Mark Morgan Lloyd: Sven Barth wrote: Am 22.03.2012 11:32, schrieb Reinier Olislagers: I realize that the code above will be compiled by FPC, not Lazarus; perhaps it is possible to set an environment variable LAZARUSREVISION and/or

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Sven Barth
Am 22.03.2012 14:02, schrieb Graeme Geldenhuys: On 22 March 2012 14:49, Felipe Monteiro de Carvalho wrote: Could you show me the output of locate .ttf ? (a stripped down version ideally with each dir occuring only once) I zipped the output to make it smaller. Sorry, I have no idea how to

Re: [Lazarus] Conditional compilation depending on Lazarus version?

2012-03-22 Thread Sven Barth
Am 22.03.2012 14:10, schrieb Mark Morgan Lloyd: Sven Barth wrote: Am 22.03.2012 13:28, schrieb Mark Morgan Lloyd: Sven Barth wrote: Am 22.03.2012 11:32, schrieb Reinier Olislagers: I realize that the code above will be compiled by FPC, not Lazarus; perhaps it is possible to set an

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Graeme Geldenhuys
On 22 March 2012 15:21, Sven Barth wrote: Can it be that you forget the attachment? Oops, the compression ratio was set to high. ;-) -- Regards,   - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Re: [Lazarus] New LCL-CustomDrawn mailling list

2012-03-22 Thread Sven Barth
Am 22.03.2012 13:51, schrieb Felipe Monteiro de Carvalho: On Thu, Mar 22, 2012 at 9:09 AM, Sven Barthpascaldra...@googlemail.com wrote: There is already work going on for an Android target. I don't know how well it comes along though. Are you sure that there is work going on on this? Could

Re: [Lazarus] [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-22 Thread Marcos Douglas
On Wed, Mar 21, 2012 at 12:33 PM, Martin laza...@mfriebe.de wrote: On 21/03/2012 15:11, Marcos Douglas wrote: On Wed, Mar 21, 2012 at 12:01 PM, Martinlaza...@mfriebe.de  wrote: So far I have no plans to update to 7.4 until either: - I find some existing problem solved in it - I start

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Felipe Monteiro de Carvalho
2012/3/22 Graeme Geldenhuys graemeg.li...@gmail.com: But can it do this?  ;-) Well, mine can read your GPS position, accelerometer info and send SMSes in Android phones =D And it also works in Mac OS X with Cocoa ... And anyway, what people really want is the LCL, not yet another API. You can

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Sven Barth
Am 22.03.2012 14:02, schrieb Graeme Geldenhuys: On 22 March 2012 14:49, Felipe Monteiro de Carvalho wrote: Could you show me the output of locate .ttf ? (a stripped down version ideally with each dir occuring only once) I zipped the output to make it smaller. Sorry, I have no idea how to

Re: [Lazarus] Is it possible to drag and drop a web browser URL into a Lazarus app?

2012-03-22 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: On 22 March 2012 11:59, Hans-Peter Diettrich DrDiettrich1@... wrote: Inter-process DD requires special assistance by the OS. IMO such operations are limited to drop file names, or other pure text, unless a platform offers something like OLE-DragDrop. That shouldn't

Re: [Lazarus] SVN update conflicts

2012-03-22 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: As you know, the Makefile/Makefile.fpc/Makefile.compiled must be updated in sync and that it requires the newest fpc to update, because only that knows all targets. And that's why the auto update is disabled in all lpk of the Lazarus sources. The Makefiles are

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Felipe Monteiro de Carvalho
2012/3/22 Graeme Geldenhuys graemeg.li...@gmail.com: Oops, the compression ratio was set to high. ;-) Are you using the latest Lazarus SVN? Because if it was a font or system compatibility issue then the button would not work. So I suspect you are using an old revision. -- Felipe Monteiro de

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Graeme Geldenhuys
On 22 March 2012 13:04, Felipe Monteiro de Carvalho wrote: You can test for yourself lazarus-ccr/applications/lazclock/lazclock.lpi against LCL-CustomDrawn You cheated - the clock face is a PNG image. ;-) Here is a quick fpGUI version. :) Added features includes: anti-aliased line drawing

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Graeme Geldenhuys
On 22 March 2012 15:41, Sven Barth wrote: Now that you have attached your file I need to say: You don't need regex skills for that. The following program would have been sufficient: Rolling on the floor laughing! Once again, proof that Object Pascal can do everything other languages or tools

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Graeme Geldenhuys
On 22 March 2012 16:00, Felipe Monteiro de Carvalho wrote: Are you using the latest Lazarus SVN? A revision from last week. Is that too old? I'll get another Lazarus update, just in case. PS: I'm using 64-bit Linux with FPC 2.6.1 -- Regards,   - Graeme -

[Lazarus] Ignoring all warnings from an entire directory

2012-03-22 Thread Alexsander Rosa
Is that possible? Something like *-vf$(LazarusDir)/components* to supress warnings from outside my project. It's not about ignore some kinds of warnings (like *-vm4055*), but ignore all warnings in files inside a directory. -- Atenciosamente, Alexsander da Rosa http://rednaxel.com --

[Lazarus] Threads

2012-03-22 Thread Antonio Fortuny
Hi folks. Wen launching a thread, the process responsible for the thread object creation and the call to TThread.Start and the thread EXECUTE procedure, run in parallel. That's why the SYNCHRONIZE procedure exists and that the developer has to pay attention to not share code between threads.

Re: [Lazarus] Ignoring all warnings from an entire directory

2012-03-22 Thread Mattias Gaertner
Alexsander Rosa alexsander.r...@gmail.com hat am 22. März 2012 um 15:30 geschrieben: -vf$(LazarusDir)/components to supress warnings from outside my project. It's not about ignore some kinds of warnings (like -vm4055 ), but ignore all warnings in files inside a directory. If it is about the

Re: [Lazarus] Threads

2012-03-22 Thread Mattias Gaertner
Antonio Fortuny a.fort...@sitasoftware.lu hat am 22. März 2012 um 15:32 geschrieben: Hi folks. Wen launching a thread, the process responsible for the thread object creation and the call to TThread.Start and the thread EXECUTE procedure, run in parallel. That's why the SYNCHRONIZE procedure

Re: [Lazarus] Threads

2012-03-22 Thread Michael Schnell
Besides what the other said a very basic comment. The location where an object is defined (i.e. within a TThread enabled unit) or who created it (the main line code or the thread code) does not matter. The Concept of classes, objects and instances is a matter of memory allocation and pointers

Re: [Lazarus] Ignoring all warnings from an entire directory

2012-03-22 Thread Alexsander Rosa
2012/3/22 Mattias Gaertner nc-gaert...@netcologne.de ** If it is about the components in the Lazarus directory: IMO all warnings/notes should be fixed. Either by code or by {%H-}. Any help is welcome. Should I fix them on trunk or may I fix them on 0.9.30.4 release (that I am using)?

Re: [Lazarus] Conditional compilation depending on Lazarus version?

2012-03-22 Thread cobines
2012/3/22 Mark Morgan Lloyd markmll.laza...@telemetry.co.uk: At that point if there's an ./ide/revision.inc file containing // Created by Svn2RevisionInc const RevisionStr = '35880M'; can it be included into a unit to make it visible at compile time? You can add $(LazarusDir)\ide to the

Re: [Lazarus] Size of binaries etc.

2012-03-22 Thread Mark Morgan Lloyd
Felipe Monteiro de Carvalho wrote: I did some tests here and I guess this is simply the normal size of an app if you use ComCtrls. 1,5MB was for a minimal app with a form and some buttons. ComCtrls alone adds 1MB You can check this in the menu Project-Show used ppu files (might be 0.9.31+ only).