Re: [Lazarus] "global" operator overloading

2013-02-25 Thread xrfang
No, it's not a dilemma, but rather a requirement. Before generics specialization, all required operations for given type must be known. This is because the symbol table when the generics is parsed must be reconstructed when it gets specialized. Think about declaring usual classes with the gener

Re: [Lazarus] "global" operator overloading

2013-02-25 Thread leledumbo
> Is there anyway to avoid this dilemma? Because I don't want treap.pas to "reversely" rely on a specialized class. No, it's not a dilemma, but rather a requirement. Before generics specialization, all required operations for given type must be known. This is because the symbol table when the gen

[Lazarus] "global" operator overloading

2013-02-25 Thread xrfang
Hi There, Days ago I posted a message about compiling error related to operator overloading. I found the reason now, but don't know how to fix that.  The code is: = uses Classes, treap; type   TSLCounter = specialize TTreap; operator <(sl1, sl2: TStringList): Boolean; = The

Re: [Lazarus] WinINet STDCALL callback crash

2013-02-25 Thread Hans-Peter Diettrich
matt...@accordancebible.com schrieb: Hans-Peter, our project has so far been able to avoid the additional complexity posed by threads. It would be with reluctance that we would turn to threading; however, if experimenting with Ludo's post content (see below) does not work, then would will use th

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-25 Thread Michalis Kamburelis
I was testing TOpenGLControl.MultiSampling on Linux (with Radeon GPU), it worked fine for me. I just did some more testing, and things look a little weird. TOpenGLControl.MultiSampling works fine for Radeon GPU, but silently fails with NVidia GPU (GeForce GTS 450 with propriatary NVidia OpenGL)

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-25 Thread Michalis Kamburelis
Reimar Grabowski wrote: Hi, as the title says multisampling does not work for me. I was testing TOpenGLControl.MultiSampling on Linux (with Radeon GPU), it worked fine for me. Note that there is a fallback (documented in TCustomOpenGLControl interface): if the requested MultiSampling is no

Re: [Lazarus] Error: Incompatible type for arg no. 1: Got "TFPPenEndCap", expected "TPenEndCap"

2013-02-25 Thread patspiper
On 26/02/13 00:19, Mattias Gaertner wrote: On Mon, 25 Feb 2013 22:43:36 +0200 patspiper wrote: On 25/02/13 21:37, Marcos Douglas wrote: On Mon, Feb 25, 2013 at 11:09 AM, Marcos Douglas wrote: Hi, I updated my FPC to 2.6.3 (rev 23658) and my Lazarus trunk (rev 40403) I'm using Windows. Whe

Re: [Lazarus] Configuration not quite right

2013-02-25 Thread Mattias Gaertner
On Mon, 25 Feb 2013 13:40:43 -0600 Leslie Turriff wrote: > Hi, > I'm just starting out with Free Pascal and Lazarus, and I need a bit of > help. > I've installed them in my OpenSuSE 12.2 system running on x86_64 > hardware, > using the version in the distribution repository (which

Re: [Lazarus] Error: Incompatible type for arg no. 1: Got "TFPPenEndCap", expected "TPenEndCap"

2013-02-25 Thread Mattias Gaertner
On Mon, 25 Feb 2013 22:43:36 +0200 patspiper wrote: > On 25/02/13 21:37, Marcos Douglas wrote: > > On Mon, Feb 25, 2013 at 11:09 AM, Marcos Douglas wrote: > >> Hi, > >> > >> I updated my FPC to 2.6.3 (rev 23658) and my Lazarus trunk (rev 40403) > >> > >> I'm using Windows. > >> When I try to com

[Lazarus] Semi OT: Database-free application lecture

2013-02-25 Thread ik
Hello, I gave today a lecture named "database-free applications"[1]. The lecture explain an idea of how to design complex systems and break them apart etc... The lecture is in English and so does my slide notes, and I think that people here can enjoy the idea as well. [1] https://github.com/ik5/

Re: [Lazarus] Error: Incompatible type for arg no. 1: Got "TFPPenEndCap", expected "TPenEndCap"

2013-02-25 Thread patspiper
On 25/02/13 21:37, Marcos Douglas wrote: On Mon, Feb 25, 2013 at 11:09 AM, Marcos Douglas wrote: Hi, I updated my FPC to 2.6.3 (rev 23658) and my Lazarus trunk (rev 40403) I'm using Windows. When I try to compile Lazarus, I got: W:\md\dev\freepascal\ide\laz\1.1\ide\syncolorattribeditor.pas(1

[Lazarus] Configuration not quite right

2013-02-25 Thread Leslie Turriff
Hi, I'm just starting out with Free Pascal and Lazarus, and I need a bit of help. I've installed them in my OpenSuSE 12.2 system running on x86_64 hardware, using the version in the distribution repository (which I presumed would be properly configured). Lazarus is v1.0.4 and F

Re: [Lazarus] Error: Incompatible type for arg no. 1: Got "TFPPenEndCap", expected "TPenEndCap"

2013-02-25 Thread Marcos Douglas
On Mon, Feb 25, 2013 at 11:09 AM, Marcos Douglas wrote: > Hi, > > I updated my FPC to 2.6.3 (rev 23658) and my Lazarus trunk (rev 40403) > > I'm using Windows. > When I try to compile Lazarus, I got: > > W:\md\dev\freepascal\ide\laz\1.1\ide\syncolorattribeditor.pas(167,26) > Error: Incompatible ty

Re: [Lazarus] LazReport Band.name patch

2013-02-25 Thread Giuliano Colla
On 02/24/2013 09:19 PM, Jesus Reyes wrote: --- El jue 21-feb-13, Giuliano Colla escribió: I've tested a different approach, i.e. not *setting* the Band name, but just *getting* Band name from BandView, (a Name property in TfrBand which just returns the name of the corresponding Bandview, i.e.

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-25 Thread Reimar Grabowski
On Mon, 25 Feb 2013 20:48:19 +0200 Chavoux Luyt wrote: > Don't know if this helps at all! Unfortunately not. TOpenGLControl is a component that comes with Lazarus and it uses GDK. R. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org ht

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-25 Thread Chavoux Luyt
Hi Reimar It seems the original author had a problem with GDK... should that not be cairo? I though GDK was deprecated (http://developer.gnome.org/gdk/). Don't know if this helps at all! Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-25 Thread Reimar Grabowski
Just found this on the lazarus forum: http://www.lazarus.freepascal.org/index.php?topic=8769.0 The poor author received as much feedback as myself. But it looks more and more like GDK is the culprit. Surely there must be a way to make this work. R. -- __

Re: [Lazarus] TOpenGLControl: multisampling not working (Linux/GLX)

2013-02-25 Thread Reimar Grabowski
On Fri, 15 Feb 2013 07:43:27 +0100 Reimar Grabowski wrote: > Does multisampling work under Linux/Gtk for anyone? As no one answered I take this as a no, making it look like this feature was never working (not even for the one who implemented it) and never tested. So I have to try to get my head

Re: [Lazarus] WinINet STDCALL callback crash

2013-02-25 Thread Sven Barth
On 25.02.2013 17:42, matt...@accordancebible.com wrote: Ludo, Hans-Peter, Many thanks for your insights. Ludo, I am reviewing the msdn code example you posted; I have read quite a few but don't remember seeing that one. Hans-Peter, our project has so far been able to avoid the additional comp

Re: [Lazarus] WinINet STDCALL callback crash

2013-02-25 Thread matthew
Ludo, Hans-Peter, Many thanks for your insights. Ludo, I am reviewing the msdn code example you posted; I have read quite a few but don't remember seeing that one. Hans-Peter, our project has so far been able to avoid the additional complexity posed by threads. It would be with reluctance

Re: [Lazarus] For the Free Pascal 2.6.2, which Lazarus I use?

2013-02-25 Thread Graeme Geldenhuys
On 2013-02-25 16:32, silvioprog wrote: > ...snip... > I give priority for stability, because I will build a project that will > used in production. Good question, thanks. I needed the same information. :) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

Re: [Lazarus] For the Free Pascal 2.6.2, which Lazarus I use?

2013-02-25 Thread Marcos Douglas
On Mon, Feb 25, 2013 at 1:32 PM, silvioprog wrote: > Hello, > > We have the Free Pascal 2.6.2 stable. OK, but, which version of Lazarus I > use with this new Free Pascal? > > I give priority for stability, because I will build a project that will used > in production. Lazarus 1.0.6 http://www.laz

[Lazarus] For the Free Pascal 2.6.2, which Lazarus I use?

2013-02-25 Thread silvioprog
Hello, We have the Free Pascal 2.6.2 stable. OK, but, which version of Lazarus I use with this new Free Pascal? I give priority for stability, because I will build a project that will used in production. Thx. -- Silvio Clécio My public projects - github.com/silvioprog -- __

Re: [Lazarus] Error: Incompatible type for arg no. 1: Got "TFPPenEndCap", expected "TPenEndCap"

2013-02-25 Thread Frank Church
On 25 February 2013 14:09, Marcos Douglas wrote: > Hi, > > I updated my FPC to 2.6.3 (rev 23658) and my Lazarus trunk (rev 40403) > > I'm using Windows. > When I try to compile Lazarus, I got: > > W:\md\dev\freepascal\ide\laz\1.1\ide\syncolorattribeditor.pas(167,26) > Error: Incompatible type for

Re: [Lazarus] Simple daemon on linux does nothing

2013-02-25 Thread Krzysztof
Oh thanks! I didn't know that daemon is based on threading and on linux "-dUseCThreads" is needed. Now everything is working. Thanks -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/laza

Re: [Lazarus] Simple daemon on linux does nothing

2013-02-25 Thread Michael Van Canneyt
On Mon, 25 Feb 2013, Krzysztof wrote: I attached simple project. Run script included (based on script from lazarus wiki). Change paths in this script and also change output file path in TDaemon1 class. I copied "run_my_service.sh" script into /etc/init.d/ and then: sudo service run_my_service

Re: [Lazarus] Simple daemon on linux does nothing

2013-02-25 Thread Michael Van Canneyt
On Mon, 25 Feb 2013, Krzysztof wrote: Hi, I'm reading this article about services: http://wiki.freepascal.org/Daemons_and_Services I have created onStart event which should create text file in my home directory but nothing happens: Did you specify the -r option ? Can you post complete sou

[Lazarus] Error: Incompatible type for arg no. 1: Got "TFPPenEndCap", expected "TPenEndCap"

2013-02-25 Thread Marcos Douglas
Hi, I updated my FPC to 2.6.3 (rev 23658) and my Lazarus trunk (rev 40403) I'm using Windows. When I try to compile Lazarus, I got: W:\md\dev\freepascal\ide\laz\1.1\ide\syncolorattribeditor.pas(167,26) Error: Incompatible type for arg no. 1: Got "TFPPenEndCap", expected "TPenEndCap" W:\md\dev\fr

[Lazarus] Simple daemon on linux does nothing

2013-02-25 Thread Krzysztof
Hi, I'm reading this article about services: http://wiki.freepascal.org/Daemons_and_Services I have created onStart event which should create text file in my home directory but nothing happens: procedure TDaemon1.DataModuleStart(Sender: TCustomDaemon; var Ok: Boolean); var sl: TStringList; beg