Re: [lazarus] Parameter not used ...
Geno Roupsky wrote: There are very few situations where the sender is nil and still if you expect such a case you can always write something like: Assert((Sender = nil) or (Sender <> nil)); or Assert(True or (Sender=nil)). But it remains ugly, IMHO. I will try to implement an option in the IDE to ignore this hint (similar to the unit not used hint). Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Parameter not used ...
There are very few situations where the sender is nil and still if you expect such a case you can always write something like: Assert((Sender = nil) or (Sender <> nil));2006/2/24, Vincent Snijders <[EMAIL PROTECTED]>: Andreas Berger wrote:> Geno Roupsky wrote:>>> a nicer workaroung is this Assert(Sender <> nil);>>> Thanks :) this could do the trick.That is, until somebody actually compiles that code with assertions enabled and Sender=nil. ;-)Vincent._ To unsubscribe: mail [EMAIL PROTECTED] with"unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Geno Roupsky
Re: [lazarus] Parameter not used ...
Andreas Berger wrote: Geno Roupsky wrote: a nicer workaroung is this Assert(Sender <> nil); Thanks :) this could do the trick. That is, until somebody actually compiles that code with assertions enabled and Sender=nil. ;-) Vincent. _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Program plugin
> > If you choose for a dll system, I would choose Interfaces (and indeed, > don't pass strings, dyn arrays or classes) > > Marc > I don't have much experience with interfaces and would like to learn more about them. Can you import/export one to and from other languages? i.e. c++/c/etc. _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Parameter not used ...
Just to confirm: the Assert workaround with assertions turned off will avoid the hint AND will not generate code, right? If so, this is better than any other workaround! But anyway it would be nicer if FPC could have a flag to ignore this specific hint when the parameter is a specific string ("Sender" in this case). Like "-some-letter Sender".2006/2/24, Andreas Berger <[EMAIL PROTECTED]>: Geno Roupsky wrote:> a nicer workaroung is this>> Assert(Sender <> nil);Thanks :) this could do the trick._ To unsubscribe: mail [EMAIL PROTECTED] with"unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives-- Atenciosamente,Alexsander da Rosa
Re: [lazarus] Lazarus not longer compileable with FPC 2.0.0 ??
ok, have installed 2.0.2 - Original Message - From: "Mattias Gaertner" <[EMAIL PROTECTED]> To: Sent: Friday, February 24, 2006 7:34 PM Subject: Re: [lazarus] Lazarus not longer compileable with FPC 2.0.0 ?? On Fri, 24 Feb 2006 18:06:08 +0100 "Christian U." <[EMAIL PROTECTED]> wrote: I get an error when i try to compile Lazarus SVN with FPC 2.0.0 Use Lazarus 0.9.10 with FPC 2.0.0. Lazarus 0.9.12 needs FPC 2.0.2 Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus not longer compileable with FPC 2.0.0 ??
On Fri, 24 Feb 2006 18:06:08 +0100 "Christian U." <[EMAIL PROTECTED]> wrote: > I get an error when i try to compile Lazarus SVN with FPC 2.0.0 Use Lazarus 0.9.10 with FPC 2.0.0. Lazarus 0.9.12 needs FPC 2.0.2 Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Qt4 Progress
On Fri, 24 Feb 2006 07:41:19 -0300 Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote: > Hello, > > I sent a Qt4 patch to [EMAIL PROTECTED] (it was too big to > be sent to the ML, even after bzip2) > > I am posting here just to tell the rest of the comunity what it contains. > > * Implemented TTimer. I think this is 100% implemented. > > * Implemented TCheckBox > > * Implemented TRadioButton > > * Fixed a bug for OnClick event > > * Implemented TStaticText > > * Updated qt4.pas file so it is now up-to-date with the latest Qt > bindings by Den Jean. Applied. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] German translation taborderdlg and anchoreditor to resourcestring
On Thu, 23 Feb 2006 21:15:46 +0100 "Darius Blaszijk" <[EMAIL PROTECTED]> wrote: > Darius Applied. Thanks. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Parameter not used ...
On Fri, 24 Feb 2006 11:07:11 +0200 "Geno Roupsky" <[EMAIL PROTECTED]> wrote: > a nicer workaroung is this > > Assert(Sender <> nil); > > as this will produce code only if assertion is turned on and this is not > the case with production builds. Good idea. I added this an example for an IDE QuickFix item. Just install the package /examples/idequickfix/quickfixexample.lpk and you can now fix 'parameter "Sender" not used' messages easily by right clicking. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Lazarus not longer compileable with FPC 2.0.0 ??
I get an error when i try to compile Lazarus SVN with FPC 2.0.0 Christian - Original Message - From: "Andreas Berger" <[EMAIL PROTECTED]> To: Sent: Friday, February 24, 2006 12:26 PM Subject: Re: [lazarus] Parameter not used ... Geno Roupsky wrote: a nicer workaroung is this Assert(Sender <> nil); Thanks :) this could do the trick. _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] cannot find -lgdk-x11-2.0
installing libgtk2.0-dev and libgdk-pixbuf2 should do the trick Geno Roupsky2006/2/24, Panagiotis Sidiropoulos <[EMAIL PROTECTED]>: > Are you building Lazarus for GTK 2 ?Yes.> IIRC gdk-x11-2.0 comes with the gdk2 packages.I failed to find gdk2 packages neither through Synaptic orpackages.debian.org .Please feel free to correct me ine case of using wrong terminoly, myexperience on Linux is limited.Any ideas?Panagiotis-Original Message-From: Marc Weustink [mailto: [EMAIL PROTECTED]]Sent: Friday, February 24, 2006 11:43 AMTo: lazarus@miraclec.comSubject: Re: [lazarus] cannot find -lgdk-x11-2.0Panagiotis Sidiropoulos wrote: > While rebuilding Lazarus, I get error messge:> - /usr/bin/ld: cannot find -lgdk-x11-2.0Are you building Lazarus for GTK 2 ?IIRC gdk-x11-2.0 comes with the gdk2 packages.Marc >> I tried to update gtk library using Synaptic. It found 32 files to> update but on 30th file following messages appeared:> http://pkg-kde.alioth.debian.org/kde-3.4.0/./Packages.gz : 404 Not> Found> http://pkg-kde.alioth.debian.org/kde-3.4.1/./Packages.gz: 404 NotFound>> After this whie opening Synaptic, I get error messages: > E: Dynamic MMap ran out of room> E: Dynamic MMap ran out of room> E: Problem processing xgalaga (NewVersion1)> E: Problem with> MergeList>/var/lib/apt/lists/ftp.de.debian.org_pub_debian_dists_testing_main_binar y-i386_Packages> E: Can't analyze or open list of packages.>> While rebuilding Lazarus, I still get error messge:> - /usr/bin/ld: cannot find -lgdk-x11-2.0>> Any advice would be most appreciated. >> Regards, Panagiotis>> _> To unsubscribe: mail [EMAIL PROTECTED] with> "unsubscribe" as the Subject>archives at http://www.lazarus.freepascal.org/mailarchives>_ To unsubscribe: mail [EMAIL PROTECTED] with"unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives_ To unsubscribe: mail [EMAIL PROTECTED] with"unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] VitrualTreeView
use the actual cvs version please, there all actual "lazarus issues" :) are fixed i will upload an new version to the code and components repositore when i finished the drag&drop support - Original Message - From: "Razvan Adrian Bogdan" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 21, 2006 12:27 PM Subject: Re: [lazarus] VitrualTreeView I have an older version of this component from one month ago, then it was unusable, i managed to install it but it had serious painting bugs, i will try again hopefully with more luck this time, TreeView also has some bugs but the what makes this component so useful is probably it's speed and flexibility, getting it to work would be great :) On 2/19/06, Darius Blaszijk <[EMAIL PROTECTED]> wrote: Is anybody using VirtualTreeView? I've been trying to install the stable reelease and CVS version but on both accounts I get a "compile error" (this is the actual messag without anything else) and the package is left out for Lazarus to compile. Haven't looked into it deeper yet, thought I would ask first. Darius _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Parameter not used ...
Geno Roupsky wrote: a nicer workaroung is this Assert(Sender <> nil); Thanks :) this could do the trick. _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Patch for msgview.pp
Graeme Geldenhuys wrote: Hi, Attached is a patch to color code the $Warning messages as well (as was done for $NOTE and $HINT). (It is a patch against todays nightly build. Sorry in is not against SVN, I still can't seem to connect to SVN) Regards, - Graeme - Thanks. Applied. Vincent. _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Qt4 Progress
Hello, I sent a Qt4 patch to [EMAIL PROTECTED] (it was too big to be sent to the ML, even after bzip2) I am posting here just to tell the rest of the comunity what it contains. * Implemented TTimer. I think this is 100% implemented. * Implemented TCheckBox * Implemented TRadioButton * Fixed a bug for OnClick event * Implemented TStaticText * Updated qt4.pas file so it is now up-to-date with the latest Qt bindings by Den Jean. thanks, Felipe _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Patch for msgview.pp
Hi, Attached is a patch to color code the $Warning messages as well (as was done for $NOTE and $HINT). (It is a patch against todays nightly build. Sorry in is not against SVN, I still can't seem to connect to SVN) Regards, - Graeme - msgview.pp.diff Description: Binary data
RE: [lazarus] cannot find -lgdk-x11-2.0
> Are you building Lazarus for GTK 2 ? Yes. > IIRC gdk-x11-2.0 comes with the gdk2 packages. I failed to find gdk2 packages neither through Synaptic or packages.debian.org. Please feel free to correct me ine case of using wrong terminoly, my experience on Linux is limited. Any ideas? Panagiotis -Original Message- From: Marc Weustink [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 11:43 AM To: lazarus@miraclec.com Subject: Re: [lazarus] cannot find -lgdk-x11-2.0 Panagiotis Sidiropoulos wrote: > While rebuilding Lazarus, I get error messge: > - /usr/bin/ld: cannot find -lgdk-x11-2.0 Are you building Lazarus for GTK 2 ? IIRC gdk-x11-2.0 comes with the gdk2 packages. Marc > > I tried to update gtk library using Synaptic. It found 32 files to > update but on 30th file following messages appeared: > http://pkg-kde.alioth.debian.org/kde-3.4.0/./Packages.gz: 404 Not > Found > http://pkg-kde.alioth.debian.org/kde-3.4.1/./Packages.gz: 404 Not Found > > After this whie opening Synaptic, I get error messages: > E: Dynamic MMap ran out of room > E: Dynamic MMap ran out of room > E: Problem processing xgalaga (NewVersion1) > E: Problem with > MergeList > /var/lib/apt/lists/ftp.de.debian.org_pub_debian_dists_testing_main_binar y-i386_Packages > E: Can't analyze or open list of packages. > > While rebuilding Lazarus, I still get error messge: > - /usr/bin/ld: cannot find -lgdk-x11-2.0 > > Any advice would be most appreciated. > > Regards, Panagiotis > > _ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject >archives at http://www.lazarus.freepascal.org/mailarchives > _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] cannot find -lgdk-x11-2.0
Panagiotis Sidiropoulos wrote: While rebuilding Lazarus, I get error messge: - /usr/bin/ld: cannot find -lgdk-x11-2.0 Are you building Lazarus for GTK 2 ? IIRC gdk-x11-2.0 comes with the gdk2 packages. Marc I tried to update gtk library using Synaptic. It found 32 files to update but on 30th file following messages appeared: http://pkg-kde.alioth.debian.org/kde-3.4.0/./Packages.gz: 404 Not Found http://pkg-kde.alioth.debian.org/kde-3.4.1/./Packages.gz: 404 Not Found After this whie opening Synaptic, I get error messages: E: Dynamic MMap ran out of room E: Dynamic MMap ran out of room E: Problem processing xgalaga (NewVersion1) E: Problem with MergeList /var/lib/apt/lists/ftp.de.debian.org_pub_debian_dists_testing_main_binary-i386_Packages E: Can't analyze or open list of packages. While rebuilding Lazarus, I still get error messge: - /usr/bin/ld: cannot find -lgdk-x11-2.0 Any advice would be most appreciated. Regards, Panagiotis _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] cannot find -lgdk-x11-2.0
While rebuilding Lazarus, I get error messge: - /usr/bin/ld: cannot find -lgdk-x11-2.0 I tried to update gtk library using Synaptic. It found 32 files to update but on 30th file following messages appeared: http://pkg-kde.alioth.debian.org/kde-3.4.0/./Packages.gz: 404 Not Found http://pkg-kde.alioth.debian.org/kde-3.4.1/./Packages.gz: 404 Not Found After this whie opening Synaptic, I get error messages: E: Dynamic MMap ran out of room E: Dynamic MMap ran out of room E: Problem processing xgalaga (NewVersion1) E: Problem with MergeList /var/lib/apt/lists/ftp.de.debian.org_pub_debian_dists_testing_main_binary-i386_Packages E: Can't analyze or open list of packages. While rebuilding Lazarus, I still get error messge: - /usr/bin/ld: cannot find -lgdk-x11-2.0 Any advice would be most appreciated. Regards, Panagiotis _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Parameter not used ...
a nicer workaroung is this Assert(Sender <> nil); as this will produce code only if assertion is turned on and this is not the case with production builds. Geno Roupsky2006/2/21, Tony Pelton <[EMAIL PROTECTED]>: On 2/21/06, Andreas Berger <[EMAIL PROTECTED]> wrote:> I know that this question should go to FPC, but since I am not on that> mailing list I am hoping some kind soul will answer this here :-) >> When I compile a Lazarus project from the command line I get a HINT for> every parameter not used in the method. This is ok if it is my method,> but methods used by events must have these parameters to work. I know I > can use the {$HINTS OFF} option to disable all hints, but that is not> really a good idea. Is there any way to disable only that one specific hint?not really what you are asking but ...i've noted, in bits of sample source, that some people do : if(Sender = Nil) Then ;... at the top of the event procedure.it took me a little while to realize why people were putting this intotheir event procedures.it seems strange to me to inject extra ops into your code to avoid a compiler "hint" ... but what do i know.>> Regards,> AndreasTony--X-SA user ? 0.4 is out !http://x-plane.dsrts.com http://games.groups.yahoo.com/group/x-plane-foo/_ To unsubscribe: mail [EMAIL PROTECTED] with"unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Program plugin
Hello, > If you choose for a dll system, I would choose Interfaces (and indeed, > don't pass strings, dyn arrays or classes) What you mean with "Interfaces" ? Philippe Message sent using UebiMiau 2.7.8 _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Program plugin
L505 wrote: Could someone give me an idea? I am writing an application to which I hope to add functionality later. One option would be to simple send out the new exe to all users. However, I would like to implement a plugin system. So a new feature could simply be added and totaly integrated to the original application. It is important to note that the application has no idea what is going to be added later. Any ideas anyone? Notes: If you want people to build plug-ins in other languages than Pascal (visual basic, C++, C, etc) then don't use ansistrings or objects since they are specific to Pascal. Who is your market? People who own copies of Delphi/FPC or people who own copies of Visual Studio, Delphi, VB, FPC, and more? If you choose for a dll system, I would choose Interfaces (and indeed, don't pass strings, dyn arrays or classes) Marc _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives