Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-06

Bug Report Update

21 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Title: GDK Error ?

Entered by: Qrczaczek

Original Description:
What to do to hang Lazarus:

open lazarus
put radiobutton on clean form
and then put mainmenu

Lazarus says that there is Gdk Error and exits!

Updated by: Marc Weustink

Status: Under Investigation

Comments:
I can't reproduce.

What platform and version,
what gdk version,
what lazarus version ?

What to do with the main menu ?

Marc

Reply by email

Unknown author

Title: lazarus apps in rh9 don't run

Entered by: Pascal de Bruijn

Original Description:
I've retested the new 8.5.2 release, and still me applications won't run. Though lazarus itself does run fine.

Updated by: Marc Weustink

Status: Unreproducable

Comments:
Checked at rh9 (gnome 2.2) and Lazarus 0.9.0

Works for me

Reply by email

Unknown author

Title: TPaintBox drawing wrong origin

Entered by: domin

Original Description:
When I put TPaintBox on the form and do some drawing on it, It's always done from the origin (0,0) of the *Form*, not the PaintBox, which has left and top properties other than 0 (also on the runtime - I've checked it)

Updated by: Mattias

Status: Fixed

Comments:
The Get/SetPixel functions didn't consider the DCOffset. That's Fixed. If you find some other drawing functions with thsi bug, please tell.

Reply by email

Vasily I. Volchenko
to Unknown author: Title: TImage.Picture.Bitmap.Canvas.Pixels Entered by: domin Original Description: Any…

I saw an anouncments, which says that TControl.Font property is readonly. I tried the source, and... It is really ReadOnly. So, I can't change Font property not only for TLabel (which normally should work for Delphi clones, but didn't work properly) , but for any other controls, including TStaticText (which worked). Moreover, TListBox.Items and TMemo.Lines can't be edited too. Why is it done? It worked OK, but was disabled.

Reply by email

Unknown author

Title: Duplicate Editor Window on Error

Entered by: Jesus Reyes

Original Description:
on Compile or clicking on error in then messages window the IDE opens a duplicate editor window even when there is one open

Updated by: Mattias

Status: Fixed

Comments:
MG

Reply by email

Unknown author

Title: TImage.Picture.Bitmap.Canvas.Pixels

Entered by: domin

Original Description:
Any attempt to write to the pixels[x,y] array property generates division_by_0, while LineTo etc works very well.

Updated by: Mattias

Status: Fixed

Comments:
Set/GetPixel now consider the DCOffset. So they draw now to the right position. As for TImage.Picture: Most parts are not implemented.

Reply by email

Unknown author

Title: loss of gtk theme

Entered by: Pascal de Bruijn

Original Description:

When compressing (with upx.sf.net) an executable generated by lazarus, the project loses it's theme and then uses the gtk default theme.

This might just be a bug in upx. I don't know, that why i'm asking your opinion.

Updated by: Mattias

Status: Not a bug

Comments:
The lazarus gtk-interface loads the gtkrc file ParamStr(0)+'.gtkrc'. UPX decompresses the executable to /tmp/xxxx and runs the file there, so the original command is lost and the right gtkrc file can not be found.

MG

Reply by email

Mattias Gaertner
to Unknown author: Title: TImage.Picture.Bitmap.Canvas.Pixels Entered by: domin Original Description: Any…
Show quoted text 6 lines
I saw an anouncments, which says that TControl.Font property is readonly. I tried the source, and... It is really ReadOnly. So, I can't change Font property not only for TLabel (which normally should work for Delphi clones, but didn't work properly) , but for any other controls, including TStaticText (which worked). Moreover, TListBox.Items and TMemo.Lines can't be edited too. Why is it done? It worked OK, but was disabled.

My fault. Sorry. Fixed.

Mattias

Reply by email

Mattias Gaertner
to Unknown author: Title: TPaintBox drawing wrong origin Entered by: domin Original Description: When I put…
Show quoted text 19 lines
On Mon, 16 Jun 2003 20:16:24 +0200 domin wrote: > Dnia pon 16. czerwca 2003 19:42, Mattias Gaertner napisa__: > > > TCanvas in cancas.inc uses the Get/SetPixel functions of the > > gtk-interface. Can you send me an example, where it does not work? > > New Project, one button, one TPaintBox (left,top0) + simple code: > > procedure TForm1.Button1Click(Sender: TObject); > var i,j: integer; > begin > for i := 10 to 20 do > for j := 10 to 20 do > PaintBox1.Canvas.Pixels[i, j] := clBlue; > end; Still works for me. Blue square in the paintbox.

Sorry. Forget my nonsense. I didn't saw the

> procedure TForm1.Button1Click(Sender: TObject);

You are right. This does not work. This is not yet implemented. Please use always 'Invalidate' and draw in the 'OnPaint' event. It will make your applications smoother. This has nothing to do with LCL, this is true for all event based GUIs. Especially if you use the very slow Get/SetPixel functions.

Mattias

Reply by email

domin
to Unknown author: Title: TPaintBox drawing wrong origin Entered by: domin Original Description: When I put…

Dnia pon 16. czerwca 2003 20:46, Mattias Gaertner napisał:

Show quoted text 5 lines
You are right. This does not work. This is not yet implemented. Please use always 'Invalidate' and draw in the 'OnPaint' event. It will make your applications smoother. This has nothing to do with LCL, this is true for all event based GUIs. Especially if you use the very slow Get/SetPixel functions.

Yeah, that works. Thank you for advice.

Dominik Zablotny ,+���+,��,+���+,��,+���+,��,+���+,��,+���+,��,+���+,�,+���+,��,+���+ ...nigdy wolny, nigdy ja - więc nie będę potępiony (c)metallica

Reply by email

domin
to Unknown author: Title: TPaintBox drawing wrong origin Entered by: domin Original Description: When I put…

Dnia pią 13. czerwca 2003 12:16, napisał:

Show quoted text 16 lines
Title: TPaintBox drawing wrong origin Entered by: domin Original Description: When I put TPaintBox on the form and do some drawing on it, It's always done from the origin (0,0) of the *Form*, not the PaintBox, which has left and top properties other than 0 (also on the runtime - I've checked it) Updated by: Mattias Status: Fixed Comments: The Get/SetPixel functions didn't consider the DCOffset. That's Fixed. If you find some other drawing functions with thsi bug, please tell.

Stilll the same bug.
Get/SetPixel - do you mean TCanvas.* ?
canvas.inc from CVS doesn't seem to be updated

domin (Dominik Zablotny) ,+���+,��,+���+,��,+���+,��,+���+,��,+���+,��,+���+,�,+���+,��,+���+ ...nigdy wolny, nigdy ja - więc nie będę potępiony (c)metallica

Reply by email

Unknown author

Title: Error when compiling

Entered by: mapelo

Original Description:
fpc 1.08 for Linux
lazarus from cvs update at actual date

This is the error:

Compiling ./designer/jitforms.pp
jitforms.pp(527,28) Error: Illegal expression
jitforms.pp(527,28) Fatal: Syntax error, EXCEPT expected but , found make[1]: *** [lazarus] Error 1
make[1]: Leaving directory `/root/Desktop/lazarus/lazarus' make: *** [ide] Error 2

Updated by: Mattias

Status: Fixed

Comments:
MG

Reply by email

Mattias Gaertner
to Unknown author: Title: TPaintBox drawing wrong origin Entered by: domin Original Description: When I put…
Show quoted text 14 lines
Dnia pon 16. czerwca 2003 19:42, Mattias Gaertner napisa__: > TCanvas in cancas.inc uses the Get/SetPixel functions of the > gtk-interface. Can you send me an example, where it does not work? New Project, one button, one TPaintBox (left,top0) + simple code: procedure TForm1.Button1Click(Sender: TObject); var i,j: integer; begin for i := 10 to 20 do for j := 10 to 20 do PaintBox1.Canvas.Pixels[i, j] := clBlue; end;

Still works for me. Blue square in the paintbox.

// And I can see funny little blue square begining at (10,10) of the _Form_// BTW I'll try to download CVS again

Mattias

Reply by email

Mattias Gaertner
to Unknown author: Title: TPaintBox drawing wrong origin Entered by: domin Original Description: When I put…
Show quoted text 22 lines
Dnia pi__ 13. czerwca 2003 12:16, napisa__: > Title: TPaintBox drawing wrong origin > > Entered by: domin > > Original Description: > When I put TPaintBox on the form and do some drawing on it, It's always > done from the origin (0,0) of the *Form*, not the PaintBox, which has > left and top properties other than 0 (also on the runtime - I've checked > it) > > Updated by: Mattias > > Status: Fixed > > Comments: > The Get/SetPixel functions didn't consider the DCOffset. That's Fixed. > If you find some other drawing functions with thsi bug, please tell. Stilll the same bug. Get/SetPixel - do you mean TCanvas.* ? canvas.inc from CVS doesn't seem to be updated

TCanvas in cancas.inc uses the Get/SetPixel functions of the gtk-interface. Can you send me an example, where it does not work?

Mattias

Reply by email

domin
to Unknown author: Title: TPaintBox drawing wrong origin Entered by: domin Original Description: When I put…

Dnia pon 16. czerwca 2003 19:42, Mattias Gaertner napisał:

TCanvas in cancas.inc uses the Get/SetPixel functions of the gtk-interface. Can you send me an example, where it does not work?

New Project, one button, one TPaintBox (left,top0) + simple code:

procedure TForm1.Button1Click(Sender: TObject);
var i,j: integer;
begin
  for i := 10 to 20 do
    for j := 10 to 20 do
       PaintBox1.Canvas.Pixels[i, j] := clBlue;
end;
//  And I can see funny little blue square begining at (10,10) of the _Form_
//  BTW I'll try to download CVS again
Dominik Zablotny ,+���+,��,+���+,��,+���+,��,+���+,��,+���+,��,+���+,�,+���+,��,+���+ ...nigdy wolny, nigdy ja - więc nie będę potępiony (c)metallica

Reply by email

Unknown author

Title: Crash lazarus editor when Pen.Style property change for a Shape

Entered by: mapelo

Original Description:
My system:
fcp 1.08 for Linux
Lazarus from cvs at actual date.
Build Lazarus with gnome LCL interface

The problem:
-Create a new proyect (application)
-Insert in Form1 a TShape (Shape1)
-Change in inspector Object for Shape1 the Pen.Style property to anything. -Inmediatly Lazarus editor crash.

Updated by: Mattias

Status: Fixed

Comments:
MWE:
Congratulations, you have found a new series of errors, which aren't trapped by our debugger yet.

Additional info:
Gdk-ERROR **: BadValue (integer parameter out of range for operation) serial 104872 error_code 2 request_code 58 minor_code 0

MG:
This was one of those bugs, where you find some code, that exists and worked for years and now you wonder how the code did that.

Reply by email

Unknown author

Title: TBitBtn glyph

Entered by: Dominik Zablotny

Original Description:
Glyph for TBitBtn.Kind = bkNoToAll
looks somewhat confusing ;)

Updated by: Mattias

Status: Fixed

Comments:
MG

Reply by email

Unknown author

Title: Taborder seems to be broken

Entered by: Yoyong Hernan

Original Description:
When I set tabordering of my controls, it does does not seem to update the values. Sometimes, if I open and close the project, the taborder goes back to its original value.

Last cvs update -> June 12, 2003
fpc 1.0.8
Mandrake 9.1

Updated by: Mattias

Status: Fixed

Comments:
MG

Reply by email

Unknown author

Title: Crash lazarus editor when Pen.Style property change for a Shape

Entered by: mapelo

Original Description:
My system:
fcp 1.08 for Linux
Lazarus from cvs at actual date.
Build Lazarus with gnome LCL interface

The problem:
-Create a new proyect (application)
-Insert in Form1 a TShape (Shape1)
-Change in inspector Object for Shape1 the Pen.Style property to anything. -Inmediatly Lazarus editor crash.

Updated by: Marc Weustink

Status: Unfixed

Comments:
MWE:
Congratulations, you have found a new series of errors, which aren't trapped by our debugger yet.

Additional info:
Gdk-ERROR **: BadValue (integer parameter out of range for operation) serial 104872 error_code 2 request_code 58 minor_code 0

Reply by email

Unknown author

Title: Changing MaxValue disables Spinedit handles

Entered by: Tom Lisjac

Original Description:

Spinedit works fine if one is dropped on a blank form and the program is immediately run. If the spinedit MaxValue is changed in the property editor, the spin handles are disabled when the program is run again. Saving the form and reloading shows 3.6757817268371582 in MaxValue... so something with stored properties appears to be broken in this control.

Updated by: Mattias

Status: Fixed

Comments:
Floats were not implemented in fpc 1.0.7. This has been fixed in 1.0.8.

Reply by email

Unknown author

Title: TColor in Object Inspector

Entered by: Dominik Zablotny

Original Description:
When browsing colors for TColor property in
ObjectInspector with drop-down menu,
there is "Access violation" when trying
to display clGrayText
In some earlier versions Lazarus crashed then,
now it's "Acces violation" message

Updated by: Mattias

Status: Fixed

Comments:
MG

Reply by email