Sign in Join

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

Mailing lists / lazarus / 2001-04

Yahooooo, I found it!!

22 messages · 12 people ·

Reply by email Subscribe to this list Your subscription

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

Florian Klaempfl
to Michael A. Hess: Actually it was a very simple mistake of using the wrong 2 variables. StretchBlt was…
you wrote 20 lines
Congratulations Michael! On Fri, Apr 13, 2001 at 09:55:44AM -0400, Michael A. Hess wrote: > Actually it was a very simple mistake of using the wrong 2 variables. > StretchBlt was using the destination pixmaps height and width for doing > the copy instead of the source height and width. When the source pixmap > was smaller then the speedbutton pixmap who knows what it was trying to > copy and to where. That is why I am surpised that Linux didn't have a > problem with it. There was also a problem with the size of the source > glyph rect used when only one glyph existed but that wasn't as much of a > problem. Think I ran into that problem when I made the ShowMessage-functions. There was something wrong with the drawing of pixmaps in Linux but I decided to use a workaround. BTW: WHich debugger are you using on Linux? I'm not satisfied with ddd because it sometimes locks up my system. There's a nice debugger from the gtkAda project but that one lacks pascal support and I can't compile it to introduce the missing module

Maybe you should start thinking about integrating a debugger in lazarus?

Reply by email

Shane Miller
to Peter Vreman: Have a look at the fpdebug.pas from the textmode IDE for all the debugger stuff. Peter

Anyone know of a location that has a good description of the available functions and the process of using libgdb??? I can look at the source but I would like to find some docs too.

Shane

Earlier message 22 lines
----- Original Message ----- From: "Peter Vreman" To: Sent: Friday, April 13, 2001 5:48 PM Subject: Re: about debugger > > Is the plan to interface with gdblib or are we planning on writing our own? > > I may start looking into this if I can figure it out. > > Have a look at the fpdebug.pas from the textmode IDE for all the debugger > stuff. > > Peter > > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Chris
to Michael A. Hess: I finally found the bug that was causing the Win32 SpeedButton problem. It was actually a…

That's great news, I'm looking forward to the nightly builds. Maybe I'll even be able to contribute!

Chris

Earlier message 26 lines
----- Original Message ----- From: "Michael A. Hess" To: "Lazarus-List" Sent: Thursday, April 12, 2001 8:51 PM Subject: [lazarus] Yahooooo, I found it!! > I finally found the bug that was causing the Win32 SpeedButton problem. > It was actually a Lazarus bug and had nothing to do with GTK. In fact I > don't know how the Linux version was working correctly with the bug. > > I have an issue I want to deal with that involves the default font used > in Win32 first before committing the code. > > We should have usable nightly builds of Win32 Lazarus IDE by tomorrow. > > -- > ==== Programming my first best destiny! ==== > > Michael A. Hess Miracle Concepts, Inc. > http://www.miraclec.com > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Markku Niskanen
to Michael A. Hess: I finally found the bug that was causing the Win32 SpeedButton problem. It was actually a…
you wrote
I finally found the bug that was causing the Win32 SpeedButton problem. It was actually a Lazarus bug and had nothing to do with GTK. In fact I don't know how the Linux version was working correctly with the bug.

Wow! This is really something. Can you reveal what you found? I supposes it MUST have had some sort of an impact on the Linux side as well.

What about the severe memory leak I found? Did the bug have anything to do with it?

Markku

Reply by email

Unknown author
to Sebastian Günther: Yes We know about the class/object issue for almost 2 years, but I still don't know why…
Show quoted text 15 lines
Florian Klaempfl wrote: > > Even more, I think we should think about a common interface to libgdb > with some helper classes, i.e. that the non visual part is common > for all IDEs. Yes > I know the classes/objects thing is a problem but > maybe we can solve it. We know about the class/object issue for almost 2 years, but I still don't know why it is a problem at all? Is mixing both OOP models in a single app really a problem?

Yes and no:

- You can't derive a class from an object or vice versa.
- You can use the objects independently.

Using classes and objects intermixed is not really a beautiful programming style, though, also it is bound to producs hard-to-understand code.

Michael.

Reply by email

Vincent Snijders
to Michael A. Hess: I finally found the bug that was causing the Win32 SpeedButton problem. It was actually a…

Congratulations, Michael.

I am curious though, what the problem was, I will be checking your patches carefully the next days.

Vincent

Earlier message 7 lines
-----Original Message----- From: Michael A. Hess Sent: Friday, April 13, 2001 1:52 AM I finally found the bug that was causing the Win32 SpeedButton problem. It was actually a Lazarus bug and had nothing to do with GTK. In fact I don't know how the Linux version was working correctly with the bug.

Reply by email

Florian Klaempfl
to Peter Vreman: Have a look at the fpdebug.pas from the textmode IDE for all the debugger stuff. Peter
you wrote 15 lines
Florian Klaempfl wrote: > > Even more, I think we should think about a common interface to libgdb > with some helper classes, i.e. that the non visual part is common > for all IDEs. Yes > I know the classes/objects thing is a problem but > maybe we can solve it. We know about the class/object issue for almost 2 years, but I still don't know why it is a problem at all? Is mixing both OOP models in a single app really a problem?

Mixing both OOP models isn't a problem but e.g. streaming is a problem.

From ide\text\fpdebug.pas:

  PBreakpoint=^TBreakpoint;
  TBreakpoint=object(TObject)
     typ  : BreakpointType;
     state : BreakpointState;
     owner : PBreakpointCollection;
     Name : PString;  { either function name or expr to watch }
     FileName : PString;
     OldValue,CurrentValue : Pstring;
     Line : Longint; { only used for bt_file_line type }
     Conditions : PString; { conditions relative to that breakpoint }
     IgnoreCount : Longint; { how many counts should be ignored }
     Commands : pchar; { commands that should be executed on breakpoint }
     GDBIndex : longint;
     GDBState : BreakpointState;
     constructor Init_function(Const AFunc : String);
     constructor Init_Empty;
     constructor Init_file_line(AFile : String; ALine : longint);
     constructor Init_type(atyp : BreakpointType;Const AnExpr : String);
     constructor Load(var S: TStream);
                         ^
TBreakpoint depends on the TV streaming. This is necessary because
the breakpoints are stored in the desktop file. But using TV streaming
in Lazarus is nonsense.

Reply by email

Florian Klaempfl
to Peter Vreman: Have a look at the fpdebug.pas from the textmode IDE for all the debugger stuff. Peter
you wrote
Have you , as Peter suggested, to see how it does it? Does it use libgdb? Or does it do something else? It seems to me that if the FPC guys have already figured it out, why not capitalize on that and reuse (or steal code) where possible.

Even more, I think we should think about a common interface to libgdb with some helper classes, i.e. that the non visual part is common for all IDEs. I know the classes/objects thing is a problem but maybe we can solve it.

Reply by email

Michael A. Hess
to Vincent Snijders: Congratulations, Michael. I am curious though, what the problem was, I will be checking…
BTW: WHich debugger are you using on Linux?

I use gdb when I do use a debugger. For this fix though I didn't use a was simply a stare at the code and trace through
it by hand solution. Anyway I was working on Windows to figure it out and trace it down.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Sebastian Günther
to Peter Vreman: Have a look at the fpdebug.pas from the textmode IDE for all the debugger stuff. Peter
Florian Klaempfl wrote
Even more, I think we should think about a common interface to libgdb with some helper classes, i.e. that the non visual part is common for all IDEs.

Yes

I know the classes/objects thing is a problem but maybe we can solve it.

We know about the class/object issue for almost 2 years, but I still don't know why it is a problem at all? Is mixing both OOP models in a single app really a problem?

- Sebastian

Reply by email

Michael A. Hess

I finally found the bug that was causing the Win32 SpeedButton problem. It was actually a Lazarus bug and had nothing to do with GTK. In fact I don't know how the Linux version was working correctly with the bug.

I have an issue I want to deal with that involves the default font used in Win32 first before committing the code.

We should have usable nightly builds of Win32 Lazarus IDE by tomorrow.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Unknown author
to Vincent Snijders: Congratulations, Michael. I am curious though, what the problem was, I will be checking…

Congratulations Michael!

Michael A. Hess wrote 8 lines
Actually it was a very simple mistake of using the wrong 2 variables. StretchBlt was using the destination pixmaps height and width for doing the copy instead of the source height and width. When the source pixmap was smaller then the speedbutton pixmap who knows what it was trying to copy and to where. That is why I am surpised that Linux didn't have a problem with it. There was also a problem with the size of the source glyph rect used when only one glyph existed but that wasn't as much of a problem.

Think I ran into that problem when I made the ShowMessage-functions. There was something wrong with the drawing of pixmaps in Linux but I decided to use a workaround.

BTW: WHich debugger are you using on Linux? I'm not satisfied with ddd because it sometimes locks up my system. There's a nice debugger from the gtkAda project but that one lacks pascal support and I can't compile it to introduce the missing module

bye,

Stefan

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695

Reply by email

Marc Weustink
to Michael A. Hess: Actually it was a very simple mistake of using the wrong 2 variables. StretchBlt was…
Michael A. Hess wrote 7 lines
Florian Klaempfl wrote: > > Maybe you should start thinking about integrating a debugger in > lazarus? Actually Marc has started that. He has the shell functions setup for it ... they're empty :-) but they are setup for it.

They are empty in cvs... yes. I already can start an app in debug :) I haven't done much lately, but someone can add the calls to the IDE,.

Marc

Show quoted text 10 lines
-- ==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Marco van de Voort
to Unknown author: Congratulations Michael! Think I ran into that problem when I made the…
Show quoted text 17 lines
> Actually it was a very simple mistake of using the wrong 2 variables. > StretchBlt was using the destination pixmaps height and width for doing > the copy instead of the source height and width. When the source pixmap > was smaller then the speedbutton pixmap who knows what it was trying to > copy and to where. That is why I am surpised that Linux didn't have a > problem with it. There was also a problem with the size of the source > glyph rect used when only one glyph existed but that wasn't as much of a > problem. Think I ran into that problem when I made the ShowMessage-functions. There was something wrong with the drawing of pixmaps in Linux but I decided to use a workaround. BTW: WHich debugger are you using on Linux? I'm not satisfied with ddd because it sometimes locks up my system. There's a nice debugger from the gtkAda project but that one lacks pascal support and I can't compile it to introduce the missing module

The FPC team uses gdb with patched Pascal support and/or the Linux IDE which has the same. (though the IDE there is still somewhat unstable).

Same for FreeBSD. (The status of Lazarus on FreeBSD is the same as on Linux, the FreeBSD 1.0.5 snapshot in the pub/fpc/snapshot directory on ftp.freepascal.org will probably compile Lazarus fine)

Reply by email

Shane Miller
to Peter Vreman: Have a look at the fpdebug.pas from the textmode IDE for all the debugger stuff. Peter

We could convert the object's in fpdebug to TObject's. Then we could inherit from them.

Shane

Earlier message 22 lines
----- Original Message ----- From: "Florian Klaempfl" To: Sent: Saturday, April 14, 2001 4:08 AM Subject: Re: about debugger > At 01:08 14.04.01 +0000, you wrote: > >Have you , as Peter suggested, to see how it does > >it? Does it use libgdb? Or does it do something else? It seems to me > >that if the FPC guys have already figured it out, why not capitalize on > >that and reuse (or steal code) where possible. > > Even more, I think we should think about a common interface to libgdb > with some helper classes, i.e. that the non visual part is common > for all IDEs. I know the classes/objects thing is a problem but > maybe we can solve it. > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Curtis White
to Peter Vreman

Have you , as Peter suggested, to see how it does
it? Does it use libgdb? Or does it do something else? It seems to me that if the FPC guys have already figured it out, why not capitalize on that and reuse (or steal code) where possible.

Shane Miller wrote 22 lines
Anyone know of a location that has a good description of the available functions and the process of using libgdb??? I can look at the source but I would like to find some docs too. Shane ----- Original Message ----- From: "Peter Vreman" To: Sent: Friday, April 13, 2001 5:48 PM Subject: Re: about debugger > > Is the plan to interface with gdblib or are we planning on writing our own? > > I may start looking into this if I can figure it out. > > Have a look at the fpdebug.pas from the textmode IDE for all the debugger > stuff. > > Peter >

Reply by email

Shane Miller
to Michael A. Hess: Actually it was a very simple mistake of using the wrong 2 variables. StretchBlt was…

Is the plan to interface with gdblib or are we planning on writing our own? I may start looking into this if I can figure it out.

Shane

Earlier message 25 lines
----- Original Message ----- From: "Michael A. Hess" To: Sent: Friday, April 13, 2001 3:41 PM Subject: Re: about debugger > Florian Klaempfl wrote: > > > > Maybe you should start thinking about integrating a debugger in > > lazarus? > > Actually Marc has started that. He has the shell functions setup for it > ... they're empty :-) but they are setup for it. > > -- > ==== Programming my first best destiny! ==== > > Michael A. Hess Miracle Concepts, Inc. > http://www.miraclec.com > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Michael A. Hess
to Vincent Snijders: Congratulations, Michael. I am curious though, what the problem was, I will be checking…
Vincent Snijders wrote 5 lines
Congratulations, Michael. I am curious though, what the problem was, I will be checking your patches carefully the next days.

Actually it was a very simple mistake of using the wrong 2 variables. StretchBlt was using the destination pixmaps height and width for doing the copy instead of the source height and width. When the source pixmap was smaller then the speedbutton pixmap who knows what it was trying to copy and to where. That is why I am surpised that Linux didn't have a problem with it. There was also a problem with the size of the source glyph rect used when only one glyph existed but that wasn't as much of a problem.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email