[Lazarus] Bug on library project while accessing string

2013-01-23 Thread Darmawan Sugiarto
hello guys, I got some bug on library project. When I uses Lazarus 0.9.28.2 I write this code and work well, then I recompile it use Lazarus 1.0.2 and 1.0.4 and got this error Project project_test raised exception class 'External: SIGEGV'. At address 7C91B1FA I have 2 project     first p

Re: [Lazarus] property setter

2013-01-23 Thread Paul Ishenin
24.01.2013 10:08, xrfang пишет: procedure TPainter.SetFont(AValue: TFont); begin if FFont=AValue then Exit; FFont:=AValue; end; My question is, why the "if" clause needed? Is there any performance benefits? Usually setters have more complex code than just FFont:=AValue; In this case If

[Lazarus] property setter

2013-01-23 Thread xrfang
Hi all, Lazarus auto generated the following code for my class: procedure TPainter.SetFont(AValue: TFont); begin   if FFont=AValue then Exit;   FFont:=AValue; end; My question is, why the "if" clause needed? Is there any performance benefits? Thanks, Shannon-- __

Re: [Lazarus] using spanish language

2013-01-23 Thread Héctor F . Fiandor Rosario
dear Mr. Manninen, thanks very much for your observation, after my message, I have been working with the appl. and found that redefining the label control the problem was solved. thanks again yours Ing. Héctor F. Fiandor Rosario hfian...@infomed.sld.cu -- Este mensaje le ha llegado mediant

Re: [Lazarus] TFPHttpClient: download progress (or status).

2013-01-23 Thread silvioprog
2013/1/23 Michael Van Canneyt > On Wed, 23 Jan 2013, silvioprog wrote: > >> 2013/1/23 silvioprog >> [...] >> >> I was thinking to myself... an initial idea: >> > > Please post a feature request. > > I think one event > TOnProgressEvent = (Sender : TObject; BytesRead,ContentLength : Int6

Re: [Lazarus] TFPHttpClient: resume download.

2013-01-23 Thread silvioprog
2013/1/23 Michael Van Canneyt > On Wed, 23 Jan 2013, silvioprog wrote: > >> Hello, >> >> Some times, we need to resume a download. To do this is very easy, enough >> read byte by byte and continuing from the last 50KB (Chrome and Firefox >> works so). >> >> So, TFPHttpClient allow to read byte b

[Lazarus] Reset of the TComboBox list

2013-01-23 Thread Eric Kom
Hello All, Please it is possible to reset or reinitialize the values of the TComboBox list after it has been selected? -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | s

Re: [Lazarus] TFPHttpClient: download progress (or status).

2013-01-23 Thread Michael Van Canneyt
On Wed, 23 Jan 2013, silvioprog wrote: 2013/1/23 silvioprog [...] I was thinking to myself... an initial idea: Please post a feature request. I think one event TOnProgressEvent = (Sender : TObject; BytesRead,ContentLength : Int64) of object; should be enough. Michael. --

Re: [Lazarus] TFPHttpClient: resume download.

2013-01-23 Thread Michael Van Canneyt
On Wed, 23 Jan 2013, silvioprog wrote: Hello, Some times, we need to resume a download. To do this is very easy, enough read byte by byte and continuing from the last 50KB (Chrome and Firefox works so). So, TFPHttpClient allow to read byte by byte of a content? No. Michael. -- _

Re: [Lazarus] TOpenGLControl.DepthBits default value

2013-01-23 Thread Reimar Grabowski
On Wed, 23 Jan 2013 00:21:44 +0100 Michalis Kamburelis wrote: First of all thanks for the explanation. > The general idea is that TOpenGLControl has safe default values, that > are guaranteed to work (and be fast) even on really really ancient > graphic cards or when the system is running unde

Re: [Lazarus] TFPHttpClient: download progress (or status).

2013-01-23 Thread silvioprog
2013/1/23 silvioprog > [...] > I was thinking to myself... an initial idea: http://pastebin.com/41GTFsws -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazaru

Re: [Lazarus] TFPHttpClient: download progress (or status).

2013-01-23 Thread silvioprog
2013/1/23 silvioprog > [...] > What do you think about implementa this method?: > > (...) > public > procedure ReadingResponse(const ASize, APosition: Int64); virtual; > (...) > Or only: procedure ReadingResponse(AStream: TStream); virtual; -- Silvio Clécio My public projects - github

Re: [Lazarus] TFPHttpClient: download progress (or status).

2013-01-23 Thread silvioprog
2013/1/23 silvioprog > 2013/1/23 silvioprog > >> Hello, >> >> First, sorry for my various requests. I'm contributing to improves this >> beautiful class. >> >> So, how to show a download progress? >> >> I think that the method "ReadResponse" should have two callbacks, like as >> "AContentLenght"

Re: [Lazarus] TFPHttpClient: download progress (or status).

2013-01-23 Thread silvioprog
2013/1/23 silvioprog > Hello, > > First, sorry for my various requests. I'm contributing to improves this > beautiful class. > > So, how to show a download progress? > > I think that the method "ReadResponse" should have two callbacks, like as > "AContentLenght" and "AContentPosition". What do yo

[Lazarus] TFPHttpClient: resume download.

2013-01-23 Thread silvioprog
Hello, Some times, we need to resume a download. To do this is very easy, enough read byte by byte and continuing from the last 50KB (Chrome and Firefox works so). So, TFPHttpClient allow to read byte by byte of a content? Thank you! -- Silvio Clécio My public projects - github.com/silvioprog

[Lazarus] TFPHttpClient: download progress (or status).

2013-01-23 Thread silvioprog
Hello, First, sorry for my various requests. I'm contributing to improves this beautiful class. So, how to show a download progress? I think that the method "ReadResponse" should have two callbacks, like as "AContentLenght" and "AContentPosition". What do you think? Thank you! -- Silvio Cléci

Re: [Lazarus] trunk compile error Win XP : Error: identifier idents no member "StrikeThrough"

2013-01-23 Thread Sven Barth
Am 23.01.2013 16:32, schrieb John Landmesser: Am 23.01.2013 15:56, schrieb Vincent Snijders: Is your fpc 2.6.1 version up to date? Vincent Thanks for this tipp, now it compiles ok! But: I had fpc 2.6.1 from 2012 and now i extracted fpc 2.6.1 from a snapshot. There are differences between 2

Re: [Lazarus] TOpenGLControl.DepthBits default value

2013-01-23 Thread Michalis Kamburelis
Kostas Michalopoulos wrote: AFAIK even if you ask for 24 and there is no support for it, you'll get a 16bit buffer anyway. No. This is a required minimal value, at least for GLX and modern wglChoosePixelFormatARB. It was *possibly* treated in more relaxed way by the old ChoosePixelFormat, bu

Re: [Lazarus] trunk compile error Win XP : Error: identifier idents no member "StrikeThrough"

2013-01-23 Thread Reinier Olislagers
On 23-1-2013 16:32, John Landmesser wrote: > Am 23.01.2013 15:56, schrieb Vincent Snijders: > I had fpc 2.6.1 from 2012 and now i extracted fpc 2.6.1 from a snapshot. > > There are differences between 2.6.1 and 2.6.1 ??? Yes. And there are differences between 2.7.1 and 2.7.1 -- _

Re: [Lazarus] trunk compile error Win XP : Error: identifier idents no member "StrikeThrough"

2013-01-23 Thread John Landmesser
Am 23.01.2013 15:56, schrieb Vincent Snijders: Is your fpc 2.6.1 version up to date? Vincent Thanks for this tipp, now it compiles ok! But: I had fpc 2.6.1 from 2012 and now i extracted fpc 2.6.1 from a snapshot. There are differences between 2.6.1 and 2.6.1 ??? I have to keep that in mind

Re: [Lazarus] trunk compile error Win XP : Error: identifier idents no member "StrikeThrough"

2013-01-23 Thread Vincent Snijders
2013/1/23 John Landmesser : > Hi, > > i cannot compile actual lazarus trunk version: > Is your fpc 2.6.1 version up to date? Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/l

[Lazarus] trunk compile error Win XP : Error: identifier idents no member "StrikeThrough"

2013-01-23 Thread John Landmesser
Hi, i cannot compile actual lazarus trunk version: Stops here: procedure TLazCanvas.AssignFontData(AFont: TFPCustomFont); begin if AFont = nil then Exit; Font.FPColor := AFont.FPColor; Font.Name := AFont.Name; Font.Size := AFont.Size; Font.Bold := AFont.Bold; Font.Italic := AFont.It

Re: [Lazarus] .lrs files

2013-01-23 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: On Wed, 23 Jan 2013 11:18:04 + Mark Morgan Lloyd wrote: Mattias Gaertner wrote: [...] Question if I may: should .lrs files be stored in (a local) .svn repository? It depends. If you only use Lazarus to compile the project, you don't need to store them. What abo

Re: [Lazarus] [PATCH] TFPHTTPClient: implements easy calls for POST/DELETE/etc. and some adjusts.

2013-01-23 Thread Michael Van Canneyt
On Wed, 23 Jan 2013, silvioprog wrote: I'm sorry, the title is: "...easy calls for DELETE/OPTIONS. and some adjusts." 2013/1/23 silvioprog Hello, Please see: http://bugs.freepascal.org/view.php?id=23731 Thank you! Applied, thank you very much. Michael. -- ___

Re: [Lazarus] [PATCH] TFPHTTPClient: implements easy calls for POST/DELETE/etc. and some adjusts.

2013-01-23 Thread silvioprog
I'm sorry, the title is: "...easy calls for DELETE/OPTIONS. and some adjusts." 2013/1/23 silvioprog > Hello, > > Please see: > > http://bugs.freepascal.org/view.php?id=23731 > > Thank you! > -- Silvio Clécio My public projects - github.com/silvioprog -- ___

[Lazarus] [PATCH] TFPHTTPClient: implements easy calls for POST/DELETE/etc. and some adjusts.

2013-01-23 Thread silvioprog
Hello, Please see: http://bugs.freepascal.org/view.php?id=23731 Thank you! -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listin

Re: [Lazarus] graphics

2013-01-23 Thread Mattias Gaertner
On Wed, 23 Jan 2013 11:54:13 +0100 duilio foschi wrote: > Hi! > > this code > > procedure TForm1.DrawBtnClick(Sender: TObject); > {Draw some ellipses on the canvas - random size and color} > var > i:integer; > cx,cy:integer; > begin > with image1, canvas do > begin > for i:= 1 to 10

Re: [Lazarus] .lrs files

2013-01-23 Thread Mattias Gaertner
On Wed, 23 Jan 2013 11:18:04 + Mark Morgan Lloyd wrote: > Mattias Gaertner wrote: >[...] > Question if I may: should .lrs files be stored in (a local) .svn > repository? It depends. If you only use Lazarus to compile the project, you don't need to store them. > What about .or? No. Matti

Re: [Lazarus] .lrs files

2013-01-23 Thread Mattias Gaertner
On Wed, 23 Jan 2013 12:01:47 +0100 Antonio Fortuny wrote: > > Le 23/01/2013 11:51, Mattias Gaertner a écrit : > > Check the project option Resource type is set to lrs. > Where is this located ? > > Check the file date of the lrs file or simply delete the file. The IDE > > will regenerate it on n

Re: [Lazarus] .lrs files

2013-01-23 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: On Wed, 23 Jan 2013 11:45:23 +0100 Antonio Fortuny wrote: Hi folks. Got a problem: I have a data module in a project with some TMemDataset All of them have some fields in the FieldDefs list Now I'm changing some of the datasets but new fields appear as not existing wh

Re: [Lazarus] .lrs files

2013-01-23 Thread Antonio Fortuny
Check the project option Resource type is set to lrs. Ok, found it. The option Save .lrs files in output folder was checked too. It is unchecked now and .lrs files are rebuilt This time I was confused because there are alittle bit too much options. But OK. It works Thanks Mattias, your answe

Re: [Lazarus] .lrs files

2013-01-23 Thread Antonio Fortuny
Le 23/01/2013 11:51, Mattias Gaertner a écrit : Check the project option Resource type is set to lrs. Where is this located ? Check the file date of the lrs file or simply delete the file. The IDE will regenerate it on next build. does not work If this does not work: Check that there is onl

[Lazarus] graphics

2013-01-23 Thread duilio foschi
Hi! this code procedure TForm1.DrawBtnClick(Sender: TObject); {Draw some ellipses on the canvas - random size and color} var i:integer; cx,cy:integer; begin with image1, canvas do begin for i:= 1 to 10 do begin cx:=random(width); cy:=random(height); brush.color:=

Re: [Lazarus] .lrs files

2013-01-23 Thread Mattias Gaertner
On Wed, 23 Jan 2013 11:45:23 +0100 Antonio Fortuny wrote: > Hi folks. > > Got a problem: I have a data module in a project with some TMemDataset > All of them have some fields in the FieldDefs list > Now I'm changing some of the datasets but new fields appear as not > existing when they are ref

Re: [Lazarus] .lrs files

2013-01-23 Thread Antonio Fortuny
Sorry, just miss the environment: WIn32, Lazarus 1.1 32979 from 2012/01/02, FPC 2.6.1 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] .lrs files

2013-01-23 Thread Antonio Fortuny
Hi folks. Got a problem: I have a data module in a project with some TMemDataset All of them have some fields in the FieldDefs list Now I'm changing some of the datasets but new fields appear as not existing when they are referenced somewhere else in the project. Finally I've seen that the datam

Re: [Lazarus] TOpenGLControl.DepthBits default value

2013-01-23 Thread Kostas Michalopoulos
AFAIK even if you ask for 24 and there is no support for it, you'll get a 16bit buffer anyway. On Wed, Jan 23, 2013 at 12:21 AM, Michalis Kamburelis < michalis.ka...@gmail.com> wrote: > Reimar Grabowski wrote: > >> Hi, >> >> the in the topic mentioned property defaults to a value of 16. Is >> th

Re: [Lazarus] GTK2 threading

2013-01-23 Thread Michael Schnell
On 01/22/2013 06:52 PM, Anton Kavalenka wrote: But GTK Widgetset uses pure Xlib calls for determining keyboard states. Xlib thread-safety is not initialized in GTK2 widgetset. AFAIK: As the GUI and Event-queue related LCL classes (i.e. TApplication) are not thread save themselves (e.g. using

Re: [Lazarus] using spanish language

2013-01-23 Thread Juha Manninen
On Wed, Jan 23, 2013 at 8:16 AM, Héctor F. Fiandor Rosario wrote: > I have found that some label.caption are written correctly in spanish, but > other don´t admit the accents as for example in the word Terminó. It sounds strange. If there was such bug in TLabel, it would affect all label captions