Sign in Join

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

Mailing lists / lazarus / 2011-09

TButton resizing is broken in Trunk's form designer

33 messages · 11 people · –

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

How can anybody use Lazarus Trunk for anything!!!

I'm trying to create a test project for another bug I reported. But using Lazarus Trunk, I can't resize a TButton in the Form Desginer. Lazarus IDE is compiled with LCL-GTK2.

Yes, I'll report this in Mantis too, I just wanted to vent some frustration. The Lazarus project REALLY needs some sort of "quality control" or regression testing!

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys
Graeme Geldenhuys wrote
I'm trying to create a test project for another bug I reported. But using Lazarus Trunk, I can't resize a TButton in the Form Desginer. Lazarus IDE is compiled with LCL-GTK2.

Reported in Mantis as:

http://bugs.freepascal.org/view.php?id=20189

Basically I can make the Button width smaller, but I can't enlarge the button width using the resize handles in the Form Designer.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Mattias Gaertner
to Graeme Geldenhuys: How can anybody use Lazarus Trunk for anything!!! I'm trying to create a test project for…
Show quoted text 9 lines
How can anybody use Lazarus Trunk for anything!!! I'm trying to create a test project for another bug I reported. But using Lazarus Trunk, I can't resize a TButton in the Form Desginer. Lazarus IDE is compiled with LCL-GTK2. Yes, I'll report this in Mantis too, I just wanted to vent some frustration. The Lazarus project REALLY needs some sort of "quality control" or regression testing!

I guess, this may still have slipped through.
I tried and I was able to reproduce it once. But even after restarting the IDE I can't reproduce it any more.

Mattias

Reply by email

Unknown author
to Mattias Gaertner
Mattias Gaertner wrote 16 lines
On Thu, 8 Sep 2011 09:45:06 +0200 Graeme Geldenhuys wrote: > How can anybody use Lazarus Trunk for anything!!! > > I'm trying to create a test project for another bug I reported. But > using Lazarus Trunk, I can't resize a TButton in the Form Desginer. > Lazarus IDE is compiled with LCL-GTK2. > > Yes, I'll report this in Mantis too, I just wanted to vent some > frustration. The Lazarus project REALLY needs some sort of "quality > control" or regression testing! I guess, this may still have slipped through. I tried and I was able to reproduce it once. But even after restarting the IDE I can't reproduce it any more.

I can resize it with the corner resizers. Never with the side resizers.

But that has been so since ages.

Michael.

Reply by email

Felipe Monteiro de Carvalho
to Mattias Gaertner: On Thu, 8 Sep 2011 09:45:06 +0200 I guess, this may still have slipped through. I tried…
Mattias Gaertner wrote 5 lines
> Yes, I'll report this in Mantis too, I just wanted to vent some > frustration. The Lazarus project REALLY needs some sort of "quality > control" or regression testing! I guess, this may still have slipped through.

In big corportations they have people which only test software quality all day (I'm one of those), so it is pretty easy to find all revisions which broke things, even when the reproduction is as low as 10%, because you are working all day on that, and a large project may have even 10 QA Engineers ...

In Lazarus we have zero Quality Assurance Engineers, so in reality everyone using trunk is a Lazarus QA ;)

Having said that, in the last few weeks I have experienced some random issues using Lazarus trunk:

* Random(?) Access Violations - Got in both Gtk2 and Carbon
* Jumps sometimes for no reason to another code editor tab - Got in both Gtk2 and Carbon

All issues happen only sometimes, maybe a memory corruption?

Randomly I get Graeme's issue, but I think that it has been like that for quite a while and it is Gtk2 specific.

I can resize it with the corner resizers. Never with the side resizers.

I just tested here and it doesn't seam to be like that. Sometimes only the corners works, sometimes everything works, something only the sides works.

It also isn't related to new components dropped.

Felipe Monteiro de Carvalho

Reply by email

Mattias Gaertner
to Unknown author: I can resize it with the corner resizers. Never with the side resizers. But that has been…
Show quoted text 24 lines
On Thu, 8 Sep 2011, Mattias Gaertner wrote: > On Thu, 8 Sep 2011 09:45:06 +0200 > Graeme Geldenhuys wrote: > >> How can anybody use Lazarus Trunk for anything!!! >> >> I'm trying to create a test project for another bug I reported. But >> using Lazarus Trunk, I can't resize a TButton in the Form Desginer. >> Lazarus IDE is compiled with LCL-GTK2. >> >> Yes, I'll report this in Mantis too, I just wanted to vent some >> frustration. The Lazarus project REALLY needs some sort of "quality >> control" or regression testing! > > I guess, this may still have slipped through. > I tried and I was able to reproduce it once. But even after restarting > the IDE I can't reproduce it any more. I can resize it with the corner resizers. Never with the side resizers. But that has been so since ages.

I hear this the first time.
Can you try the outer edge of the side resizers?
Probably it is important where you start grabbing.

Mattias

Reply by email

Felipe Monteiro de Carvalho
to Mattias Gaertner
Mattias Gaertner wrote
I hear this the first time. Can you try the outer edge of the side resizers? Probably it is important where you start grabbing.

I can reproduce with rev32010 so the issue is not new.

And you just scored a Bingo. I just tested, if you put the mouse in the middle of the button, then move it to one of the grabbers, it will refuse to resize.

If you approach the grabber from outside the control, it works!

Felipe Monteiro de Carvalho

Reply by email

Unknown author
to Mattias Gaertner: On Thu, 8 Sep 2011 11:08:18 +0200 (CEST) I hear this the first time. Can you try the…
Mattias Gaertner wrote 31 lines
On Thu, 8 Sep 2011 11:08:18 +0200 (CEST) wrote: > > > On Thu, 8 Sep 2011, Mattias Gaertner wrote: > >> On Thu, 8 Sep 2011 09:45:06 +0200 >> Graeme Geldenhuys wrote: >> >>> How can anybody use Lazarus Trunk for anything!!! >>> >>> I'm trying to create a test project for another bug I reported. But >>> using Lazarus Trunk, I can't resize a TButton in the Form Desginer. >>> Lazarus IDE is compiled with LCL-GTK2. >>> >>> Yes, I'll report this in Mantis too, I just wanted to vent some >>> frustration. The Lazarus project REALLY needs some sort of "quality >>> control" or regression testing! >> >> I guess, this may still have slipped through. >> I tried and I was able to reproduce it once. But even after restarting >> the IDE I can't reproduce it any more. > > I can resize it with the corner resizers. Never with the side resizers. > > But that has been so since ages. I hear this the first time. Can you try the outer edge of the side resizers? Probably it is important where you start grabbing.

You are right. It seems so.
If I start spot in the middle of the resizers, it fails. If grab the edge of the resizer it works.

Judging by your remark you know what causes it. That's half the solution :-)

Michael.

Reply by email

Unknown author
to Felipe Monteiro de Carvalho: On Thu, Sep 8, 2011 at 11:21 AM, Mattias Gaertner I can reproduce with rev32010 so the…
Felipe Monteiro de Carvalho wrote 13 lines
On Thu, Sep 8, 2011 at 11:21 AM, Mattias Gaertner wrote: > I hear this the first time. > Can you try the outer edge of the side resizers? > Probably it is important where you start grabbing. I can reproduce with rev32010 so the issue is not new. And you just scored a Bingo. I just tested, if you put the mouse in the middle of the button, then move it to one of the grabbers, it will refuse to resize. If you approach the grabber from outside the control, it works!

Confirmed after some more tests, but it depends: if I move far enough to the outer edge of the resizer, it will resize. Looks like with the mouse inside or on the button boundsrect, the resize doesn't register. Only when crossing the boundsrect, it has effect.

Michael.

Reply by email

Mattias Gaertner
to Unknown author: You are right. It seems so. If I start spot in the middle of the resizers, it fails. If…
Show quoted text 41 lines
On Thu, 8 Sep 2011, Mattias Gaertner wrote: > On Thu, 8 Sep 2011 11:08:18 +0200 (CEST) > wrote: > >> >> >> On Thu, 8 Sep 2011, Mattias Gaertner wrote: >> >>> On Thu, 8 Sep 2011 09:45:06 +0200 >>> Graeme Geldenhuys wrote: >>> >>>> How can anybody use Lazarus Trunk for anything!!! >>>> >>>> I'm trying to create a test project for another bug I reported. But >>>> using Lazarus Trunk, I can't resize a TButton in the Form Desginer. >>>> Lazarus IDE is compiled with LCL-GTK2. >>>> >>>> Yes, I'll report this in Mantis too, I just wanted to vent some >>>> frustration. The Lazarus project REALLY needs some sort of "quality >>>> control" or regression testing! >>> >>> I guess, this may still have slipped through. >>> I tried and I was able to reproduce it once. But even after restarting >>> the IDE I can't reproduce it any more. >> >> I can resize it with the corner resizers. Never with the side resizers. >> >> But that has been so since ages. > > I hear this the first time. > Can you try the outer edge of the side resizers? > Probably it is important where you start grabbing. You are right. It seems so. If I start spot in the middle of the resizers, it fails. If grab the edge of the resizer it works. Judging by your remark you know what causes it. That's half the solution :-)

Well, I know that the only difference between a side and a corner grabber is the amount of space outside the selected control. The grabbers are no widgets, they are just painted. The same is enlarging and shrinking: shrinking moves the mouse over the selected control. So, it probably has to do with the mouse grabbing under gtk2 at design time. When starting the drag on a button sometimes the mouse move events only work inside the button or at design time all mouse events are delegated to the designer I guess it is a bug in the gtk2 interface.
But even with this knowledge I can hardly reproduce it here. So as Felipe wrote: It will be hard to find the revision that broke it.

It would be nice if users who can reproduce it more often can help us here and find the revision.

I hope Michael is wrong and the bug was not always there.

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gaertner: On Thu, 8 Sep 2011 11:08:18 +0200 (CEST) I hear this the first time. Can you try the…
Mattias Gaertner wrote
Can you try the outer edge of the side resizers? Probably it is important where you start grabbing.

That requires fine mouse skills (smile), but I think you are on to something. If I carefully position the mouse on the outer edges of the resize handles, then I can indeed resize the component. Placing the mouse pointer in the center or inner half of the resize handles, then I can't resize the component.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Felipe Monteiro de Carvalho
to Mattias Gaertner: On Thu, 8 Sep 2011 11:34:38 +0200 (CEST) Well, I know that the only difference between a…
Mattias Gaertner wrote 5 lines
But even with this knowledge I can hardly reproduce it here. So as Felipe wrote: It will be hard to find the revision that broke it. It would be nice if users who can reproduce it more often can help us here and find the revision.

I found the revision, see the bug item.

I hope Michael is wrong and the bug was not always there.

It has existed for 5 months

Felipe Monteiro de Carvalho

Reply by email

Frank Church
to Graeme Geldenhuys
Graeme Geldenhuys wrote 13 lines
On 08/09/2011, Felipe Monteiro de Carvalho wrote: > > It has existed for 5 months :-) I guess nobody uses LCL-GTK2 then? -- Regards, - Graeme -

Interesting thread [?]

Show quoted text 11 lines
_______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110908/8942975d/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 96 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110908/8942975d/attachment.gif>

Reply by email

Alexsander Rosa
to Frank Church

I use GTK2 but not from SVN. Too many changes made me stick with 0.9.30 for now.

2011/9/8 Frank Church

Show quoted text 47 lines
On 8 September 2011 14:26, Graeme Geldenhuys wrote: > On 08/09/2011, Felipe Monteiro de Carvalho wrote: > > > > It has existed for 5 months > > :-) I guess nobody uses LCL-GTK2 then? > > > > -- > Regards, > - Graeme - > > Interesting thread [?] > > _______________________________________________ > fpGUI - a cross-platform Free Pascal GUI toolkit > http://fpgui.sourceforge.net > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church ======================= http://devblog.brahmancreations.com -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Atenciosamente, Alexsander da Rosa http://rednaxel.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110908/4f6cfaf3/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 96 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110908/4f6cfaf3/attachment.gif>

Reply by email

zeljko
to Graeme Geldenhuys: Reported in Mantis as: http://bugs.freepascal.org/view.php?id=20189 Basically I can make…
Graeme Geldenhuys wrote 8 lines
On 08/09/2011, Graeme Geldenhuys wrote: > I'm trying to create a test project for another bug I reported. But > using Lazarus Trunk, I can't resize a TButton in the Form Desginer. > Lazarus IDE is compiled with LCL-GTK2. Reported in Mantis as: http://bugs.freepascal.org/view.php?id=20189

Fixed. Please test with r 32231.

zeljko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110908/2dea35fb/attachment-0001.html>

Reply by email

Graeme Geldenhuys
to Alexsander Rosa: I use GTK2 but not from SVN. Too many changes made me stick with 0.9.30 for now. 2011/9/8…
Alexsander Rosa wrote
I use GTK2 but not from SVN. Too many changes made me stick with 0.9.30 for now.

+1

I've tried Lazarus Trunk today (I do this once in a while). Just in a few minutes I discovered quite a few bugs. I persisted for the remained of the day, but now I gave up. Just to much is broken. Back to 0.9.30.1 I go.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Graeme Geldenhuys
to Henry Vermaak: Or perhaps no-one resizes buttons? I use it daily and haven't noticed... Henry
Henry Vermaak wrote
Or perhaps no-one resizes buttons? I use it daily and haven't noticed...

In that case you clearly having been resizing ANY components for the last 5 months. :-) The bug was not just with TButton, but resizing components in general. I initially noticed it on TButton, so reported it as such.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Henry Vermaak
to Graeme Geldenhuys
Graeme Geldenhuys wrote 8 lines
On 08/09/2011, Henry Vermaak wrote: > > Or perhaps no-one resizes buttons? I use it daily and haven't noticed... In that case you clearly having been resizing ANY components for the last 5 months. :-) The bug was not just with TButton, but resizing components in general. I initially noticed it on TButton, so reported it as such.

Strange, I can resize listboxes and panels without any problems here. Buttons do have the same problem for me, though.

Henry

Reply by email

Graeme Geldenhuys
to Henry Vermaak
Henry Vermaak wrote
Strange, I can resize listboxes and panels without any problems here. Buttons do have the same problem for me, though.

I the same problem [as with TButton] with a TDateEdit component.

Regards, ? - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Unknown author
to Graeme Geldenhuys: +1 I've tried Lazarus Trunk today (I do this once in a while). Just in a few minutes I…
Graeme Geldenhuys wrote 10 lines
On 08/09/2011, Alexsander Rosa wrote: > I use GTK2 but not from SVN. Too many changes made me stick with 0.9.30 for > now. +1 I've tried Lazarus Trunk today (I do this once in a while). Just in a few minutes I discovered quite a few bugs. I persisted for the remained of the day, but now I gave up. Just to much is broken. Back to 0.9.30.1 I go.

Well. I use trunk on GTK2 daily.

I found 1 bug some time ago, and it was fixed after 1 or 2 hours.

For me, there is only 1 really annoying bug, and that is that the Z-Order is totally messed up whenever a new window is shown or I switch from another App to Lazarus (issue 18823).

Other than that, I think trunk Lazarus works and progresses just fine.

Michael.

Reply by email

Graeme Geldenhuys
to Unknown author: Well. I use trunk on GTK2 daily. I found 1 bug some time ago, and it was fixed after 1 or…
<michael.vancan wrote
Well. I use trunk on GTK2 daily.

Consider yourself lucky. ;-)

Granted, many of the bugs are LCL or Form Designer related. Both things I don't use.

But a big show-stopper for me now is the new debugging hints slowness. I tried to disable all the new "auto cast" features that Martin recently added. To no avail, they seem to stay active no matter what, and due to that, debugging hints over objects now take around 5-10 seconds to display. We still have no clue as to what is causing this slowdown. Also, it displays such a lot of information in the hint window now, the hint window is to big to fit my screen. And any "usable" information is now obfuscated by the volumes of data output.

Regards, ? - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Martin
to Graeme Geldenhuys
Graeme Geldenhuys wrote 8 lines
But a big show-stopper for me now is the new debugging hints slowness. I tried to disable all the new "auto cast" features that Martin recently added. To no avail, they seem to stay active no matter what, and due to that, debugging hints over objects now take around 5-10 seconds to display. We still have no clue as to what is causing this slowdown. Also, it displays such a lot of information in the hint window now, the hint window is to big to fit my screen. And any "usable" information is now obfuscated by the volumes of data output.

What exactly do you mean "stay active" ?

If I uncheck "automatic type-cast for objects", then I definetely get the old hint (no type cast). I also watched the gdb commands => none of the typecast related commands were sent.

- Are the commands still send, if you disable the option?
- Is just the slowness remaining ?

If it is just the slowness, then the issue certainly lies elsewhere.

Also from your other mails:

Graeme Geldenhuys wrote
I see the following line appear instantly when I hover the mouse over Sender in the code... Then the delay, then the lots of text output. <-data-evaluate-expression TfpgButton(TfpgButton(Sender))^>
Graeme Geldenhuys wrote 7 lines
All the command you listed, and the following 2 commands (which generate lots of output) execute under 1 second. So the slowdown seems to be somewhere else, not GDB. p TfpgButton(TfpgButton(Sender))^ p (^^^char(Sender)^+3)^

The 2nd email referred to executing by hand in gdb. Except for the difference between "p" and "-data-evaluate-expression" it (the 2nd) would mean that gdb can execute them quickly.

But the 1st indicates, that the delay is between lazarus sending the command, and receiving the result. Meaning either gdb, or the communication channel (pipe).

You were watching the "debug output window", So maybe this is updated delayed.
Maybe you can recompile with the following defines: DBG_VERBOSE
and optional DBGMI_QUEUE_DEBUG

Then start lazarus from console, gdb communications (long lines shortened in the middle) and some other info will be printed. the communications will be printed to console (immediately when received)

So this could help ensuring that it is either gdb or communication.

If it is communciations, then of course it could be how lazarus reads the pipes => but that code has not changed, so not likely.

Reply by email

Graeme Geldenhuys
to Martin
Martin wrote
What exactly do you mean "stay active" ?

See attached archive. There are three files. The two text files show the output captured from the Debug Output window.

test1.txt
- Show value hint while debugging is unchecked
- Automatic typecast for objects in unchecked

test2.txt
- Show value hint while debugging is checked
- Automatic typecast for objects in checked

The Report.html file shows the difference between them. Hardly any difference - not what I would have expected.

Also if "show value hint while debugging" is unchecked, shouldn't hint debugging be totally disabled?

Maybe I'm not understanding somethig hear. Is so, please explain, as I would really like to help where I can regarding Lazarus + Debugging.

- Are the commands still send, if you disable the option?

Yes

- Is just the slowness remaining ?

Slowless remains no matter what I have checked or unchecked. If I mouse over any class instance (eg: Listbox1, MyObject, Sender etc....) I have a 5-10 second delay before I see debug hint information.

The 2nd email referred to executing by hand in gdb. Except for the difference between "p" and "-data-evaluate-expression" it (the 2nd) would mean that gdb can execute them quickly.

Yes, executing the commands shown in Debug Output window, but directly inside GDB (not via Lazarus IDE), then the output of any of those commands are instant. So the slowdown is somewhere in Lazarus IDE.

But the 1st indicates, that the delay is between lazarus sending the command, and receiving the result. Meaning either gdb, or the communication channel (pipe).

It goes like this.
- I hover the mouse over Listbox1 in the source code.
- Debug Output window shows a command being sent to GDB
- 5-10 seconds latter I see the Debug Output window populated with lots of data
- 2-3 seconds later I see the Hint window appear in Lazarus source editor.

As I said, this now happens, no matter if the two checkbox options (listed above) are checked or not. This makes debugging unworkable in Lazarus Trunk (at least for me).

Show quoted text 7 lines
Maybe you can recompile with the following defines: DBG_VERBOSE and optional DBGMI_QUEUE_DEBUG Then start lazarus from console, gdb communications (long lines shortened in the middle) and some other info will be printed. the communications will be printed to console (immediately when received)

It's end of the day here, but I'll try this first thing tomorrow morning.

If it is communciations, then of course it could be how lazarus reads the pipes => but that code has not changed, so not likely.

I'll checkout an older version of Lazarus Trunk tomorrow and see if this slowdown is a recent issue, or something else that has gone unnoticed.

Thanks for your patience. :)

Regards, ? - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -------------- next part -------------- A non-text attachment was scrubbed... Name: debug_hints.tar.gz Type: application/x-gzip Size: 11912 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110908/67f19e41/attachment-0001.bin>

Reply by email

Martin
to Martin: What exactly do you mean "stay active" ? If I uncheck "automatic type-cast for objects",…
Martin wrote 20 lines
On 08/09/2011 15:24, Graeme Geldenhuys wrote: > But a big show-stopper for me now is the new debugging hints slowness. > I tried to disable all the new "auto cast" features that Martin > recently added. To no avail, they seem to stay active no matter what, > and due to that, debugging hints over objects now take around 5-10 > seconds to display. We still have no clue as to what is causing this > slowdown. Also, it displays such a lot of information in the hint > window now, the hint window is to big to fit my screen. And any > "usable" information is now obfuscated by the volumes of data output. What exactly do you mean "stay active" ? If I uncheck "automatic type-cast for objects", then I definetely get the old hint (no type cast). I also watched the gdb commands => none of the typecast related commands were sent. - Are the commands still send, if you disable the option? - Is just the slowness remaining ? If it is just the slowness, then the issue certainly lies elsewhere.

I just tested on an old fedora installation (VM same pc as my windows)

Indeed the long wait is there.
However, it is certainly not GDB, and not the pipe/communication either.

The wait-time occurs after gdb returned. And it also occurs, if the hint is triggered a 2nd time. In which case gdb isn't even involved, since a cache is used.

Switching the auto-cast off, and getting a small amount of data for the hint (just "<TObject> = {vptr xxx}" provides a fast hint to.

Getting the TForm1(Sender) as a watch is also very fast => so it is not likely that the issue is caused by any processing in gdbmidebugger.pas (or any of the debugger classes). If at all getting the value for a watch

So I got a big hint from codetols, by adding a large comment in front of the declaration of TForm, and then hinting for TForm
- If I add many lines => no problem
- If I add one very long line many 1000 char) then => ouch

bTW installing TurboPowerIProDsgn, and getting nicely formatted html hint => and the type-casted debug hint works all fine and fast (but be aware, the wrong mouse movement with that hint, and it crashes)

So the time must be lost, when a huge text is prepared for a hint (or more likely, since it doesn't happen on windows), the problem may be in the widgetsetcode for the hint on gtk2 (I haven't tested my gtk2 on win install)

Reply by email

Martin
to Graeme Geldenhuys: See attached archive. There are three files. The two text files show the output captured…

No need for recompilng with the extra symbols, that I specified.

It isn;'t the debugger.

See my other mail.

Any hint in gtk2, that consists of a single very long line (that needs to be wrapped) has the same slowness

using html hints fixes that, but crashes elsewhere

Graeme Geldenhuys wrote 15 lines
On 8 September 2011 16:42, Martin wrote: > What exactly do you mean "stay active" ? See attached archive. There are three files. The two text files show the output captured from the Debug Output window. test1.txt - Show value hint while debugging is unchecked - Automatic typecast for objects in unchecked test2.txt - Show value hint while debugging is checked - Automatic typecast for objects in checked The Report.html file shows the difference between them. Hardly any difference - not what I would have expected.

In the first you evaluate Sender and Listbox1

In the 2nd you only evaluate Listbox1

only the 2nd has

Show quoted text 10 lines
<-data-evaluate-expression(^^^char(ListBox1)^+3)^> ^done,value="0x9e3a98#8'TListBoxfff'#144'ff'#144#160#5" (gdb) <ptypeTListBox> &"ptypeTListBox\n" ~"type=^TLISTBOX=class:publicTCUSTOMLISTBOX\n" ~"end\n" ^done (gdb)

The check if listbox1 needs typecasting => it doesn't need, it is already declared the same as it actually is.

So yes the files have little difference. Had you done Sender again, there might have been a diff.

Also if "show value hint while debugging" is unchecked, shouldn't hint debugging be totally disabled?

you are right, there seems some problem there.... it should

> - Are the commands still send, if you disable the option? Yes

No, but in your example it is hard to see

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110908/927a7c59/attachment.html>

Reply by email

Martin
to Martin: No need for recompilng with the extra symbols, that I specified. It isn;'t the debugger.…

reported:
http://bugs.freepascal.org/view.php?id=20196

Martin wrote 74 lines
No need for recompilng with the extra symbols, that I specified. It isn;'t the debugger. See my other mail. Any hint in gtk2, that consists of a single very long line (that needs to be wrapped) has the same slowness using html hints fixes that, but crashes elsewhere On 08/09/2011 16:10, Graeme Geldenhuys wrote: > On 8 September 2011 16:42, Martin wrote: >> What exactly do you mean "stay active" ? > See attached archive. There are three files. The two text files show > the output captured from the Debug Output window. > > test1.txt > - Show value hint while debugging is unchecked > - Automatic typecast for objects in unchecked > > test2.txt > - Show value hint while debugging is checked > - Automatic typecast for objects in checked > > The Report.html file shows the difference between them. Hardly any > difference - not what I would have expected. In the first you evaluate Sender and Listbox1 In the 2nd you only evaluate Listbox1 only the 2nd has > <-data-evaluate-expression(^^^char(ListBox1)^+3)^> > ^done,value="0x9e3a98#8'TListBoxfff'#144'ff'#144#160#5" > (gdb) > <ptypeTListBox> > &"ptypeTListBox\n" > ~"type=^TLISTBOX=class:publicTCUSTOMLISTBOX\n" > ~"end\n" > ^done > (gdb) > The check if listbox1 needs typecasting => it doesn't need, it is already declared the same as it actually is. So yes the files have little difference. Had you done Sender again, there might have been a diff. > Also if "show value hint while debugging" is unchecked, shouldn't hint > debugging be totally disabled? you are right, there seems some problem there.... it should >> - Are the commands still send, if you disable the option? > Yes No, but in your example it is hard to see -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110908/2ceb4a73/attachment-0001.html>

Reply by email

Graeme Geldenhuys
to Martin: No need for recompilng with the extra symbols, that I specified. It isn;'t the debugger.…
Martin wrote
> > Also if "show value hint while debugging" is unchecked, shouldn't hint > > debugging be totally disabled? you are right, there seems some problem there.... it should

Reported as:

http://bugs.freepascal.org/view.php?id=20201

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Graeme Geldenhuys
to Martin: I just tested on an old fedora installation (VM same pc as my windows) Indeed the long…
Martin wrote
bTW installing TurboPowerIProDsgn, and getting nicely formatted html hint => and the type-casted debug hint works all fine and fast (but be aware, the wrong mouse movement with that hint, and it crashes)

I'll try this, but the "and it crashes" doesn't boast a lot of confidence. ;-)

So the time must be lost, when a huge text is prepared for a hint (or ...

Excellent, thanks for help finding the cause of the slowness.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email