Sign in Join

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

Mailing lists / lazarus / 2009-10

blocking that pesky assembler window

18 messages · 9 people · –

Reply by email Subscribe to this list Your subscription

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

David Emerson

whenever a fatal error occurs in my programs, an assembler window pops up.

I never use it, and I don't want to see it. I close it dozens (or hundreds) of times every day. How can I make it stop appearing?

thanks!
~David.

Reply by email

Hans-Peter Diettrich
to David Emerson
Show quoted text 5 lines
whenever a fatal error occurs in my programs, an assembler window pops up. I never use it, and I don't want to see it. I close it dozens (or hundreds) of times every day. How can I make it stop appearing?

I also dislike that behaviour :-(

Sometimes it helps to move the window out of sight.

IMO the window should remember its last position, and not pop up in the middle of the screen.

DoDi

Reply by email

Graeme Geldenhuys
to David Emerson: whenever a fatal error occurs in my programs, an assembler window pops up. I never use…
David Emerson wrote
I never use it, and I don't want to see it. I close it dozens (or hundreds) of times every day. How can I make it stop appearing?

If all else fails, hack the Lazarus source code. :-) That's what I do for features I don't like and that doesn't have customization options.

Alternatively we (me included) should learn what that assembler window means and is trying to tell us. :) Maybe it's useful, maybe not - I have no clue. Last time I looked at assembler was when I studied programming after school (to many years ago to remember anything).

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

Reply by email

JoshyFun
to David Emerson: whenever a fatal error occurs in my programs, an assembler window pops up. I never use…

Hello Lazarus-List,

Thursday, October 29, 2009, 11:15:25 PM, you wrote:

DE> whenever a fatal error occurs in my programs, an assembler window pops DE> up.
DE> I never use it, and I don't want to see it. I close it dozens (or DE> hundreds) of times every day. How can I make it stop appearing?

I'm quite sure this problem will be fixed soon (maybe this weekend). Assembler window is intented to appear only when no callstack information is available (no debug information), but currently it appears almost always.

Best regards, JoshyFun

Reply by email

Juha Manninen
to Luiz Americo Pereira Camara

Hi,

I am now using the latest development version of Lazarus from SVN. It compiles and works fine!
Then I installed some packages, including VirtualTreeView. Lazarus rebuilt itself and restarted. I got new component tabs. Perfect!

But now I updated Lazarus to latest SVN version and then run "make all". The component tabs were gone. I had to make a small change in Installed Packages window and then let Lazarus build itself once more to get them back.

How should I build the latest version so that the component tabs are preserved?

Juha Manninen

Reply by email

Vincent Snijders
to Juha Manninen
Juha Manninen wrote 13 lines
Hi, I am now using the latest development version of Lazarus from SVN. It compiles and works fine! Then I installed some packages, including VirtualTreeView. Lazarus rebuilt itself and restarted. I got new component tabs. Perfect! But now I updated Lazarus to latest SVN version and then run "make all". The component tabs were gone. I had to make a small change in Installed Packages window and then let Lazarus build itself once more to get them back. How should I build the latest version so that the component tabs are preserved?

* Update from svn.
* start old lazarus executable
* Tools -> Configure Build Lazarus
* Set everything (except examples) on build
* Check "With package"
* Click Build Button.

Vincent

Reply by email

JoshyFun
to Luiz Americo Pereira Camara: +1 Luiz

Hello Lazarus-List,

Friday, October 30, 2009, 9:17:57 AM, you wrote:

LAPC> David Emerson wrote 5 lines
> whenever a fatal error occurs in my programs, an assembler window pops > up. > I never use it, and I don't want to see it. I close it dozens (or > hundreds) of times every day. How can I make it stop appearing? >

LAPC> +1

Please check today commit about debugger.

Best regards, JoshyFun

Reply by email

Antônio
to Juha Manninen

You can get the coordinates of the cursor in the event FormMouseMove.

Ant?nio

2009/10/30 Juha Manninen

Show quoted text 13 lines
Hi, GetCursorPos is defined in winapih.inc. Does it mean it is Windows only? Is there a cross platform alternative? Juha M. -- _______________________________________________ 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/20091030/67d5cb0a/attachment.html>

Reply by email

Juha Manninen
to Vincent Snijders: No, it is part of the LCLintf unit: http://lazarus-ccr.sourceforge.net/docs/lcl/lclintf/in…

Hi.

Show quoted text 8 lines
> GetCursorPos is defined in winapih.inc. > Does it mean it is Windows only? Is there a cross platform alternative? No, it is part of the LCLintf unit: http://lazarus-ccr.sourceforge.net/docs/lcl/lclintf/index.html Porting Delphi code without having the windows unit is hard, so we made it easier.
Ok, thanks, LCLintf helped.
I am using the function in VirtualTreeView's Plugin.PopupFunc handler like
this:
  ...
  GetCursorPos(P);
  P := Tree.ScreenToClient(P);
  if PtInRect(Tree.ClientRect, P) then
  begin
    Tree.GetHitTestInfoAt(P.X, P.Y, True, fHitInfo);
    Tree.FocusedColumn := fHitInfo.HitColumn;
    Tree.FocusedNode   := fHitInfo.HitNode;
  end
  ...

It took me a long time in Delphi to find this solution to know on which cell the popup menu is opened. Focused cell is easy to get but right-mouse-click doesn't focus the cell automatically.
It is possible of course that I missed some easier way of doing it.

Regards,
Juha Manninen

Reply by email

David Emerson
to JoshyFun: DE> whenever a fatal error occurs in my programs, an assembler window pops DE> up. DE> I…
JoshyFun wrote
I'm quite sure this problem will be fixed soon (maybe this weekend). Assembler window is intented to appear only when no callstack information is available (no debug information), but currently it appears almost always.

It is great to hear that this is on the radar!

I would add that it would be nice to be able to disable the thing in all cases, even when there is no callstack info.

Cheers,
David.

Reply by email

JoshyFun
to David Emerson

Hello Lazarus-List,

Saturday, October 31, 2009, 8:20:30 PM, you wrote:

JoshyFun wrote
> I'm quite sure this problem will be fixed soon (maybe this weekend). > Assembler window is intented to appear only when no callstack > information is available (no debug information), but currently it > appears almost always.

DE> It is great to hear that this is on the radar! DE> I would add that it would be nice to be able to disable the thing in all DE> cases, even when there is no callstack info.

If no callstack information is available something really weird happends, and from that point of view your only source of some information is the assembler window. The same happends in Delphi more or less. With the new changes you will not see the assembler window almost never, maybe only debugging the FPC internal libraries.

Best regards, JoshyFun

Reply by email

David Emerson
to JoshyFun: LAPC> +1 Please check today commit about debugger. JoshyFun

Wow, thanks!

For those of us who use stable packaged lazarus... I was able to use KDE's window-specific settings to Force "Keep Below" on the assembler window.

Cheers,
~David.

JoshyFun wrote 6 lines
Hello Lazarus-List, Friday, October 30, 2009, 9:17:57 AM, you wrote: LAPC> David Emerson escreveu: >> whenever a fatal error occurs in my programs, an assembler window

pops

Show quoted text 19 lines
>> up. >> I never use it, and I don't want to see it. I close it dozens (or >> hundreds) of times every day. How can I make it stop appearing? >> LAPC> +1 Please check today commit about debugger. -- Best regards, JoshyFun -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

JoshyFun
to David Emerson

Hello Lazarus-List,

Tuesday, November 3, 2009, 11:02:31 AM, you wrote:

DE> For those of us who use stable packaged lazarus... I was able to use DE> KDE's window-specific settings to Force "Keep Below" on the assembler DE> window.

You can manually patch your stable release, as the changes are quite easy and only about one procedure, in debuggermanager.pas under ide folder change the function:

procedure TDebugManager.DebuggerCurrentLine(Sender: TObject; const ALocation: TDBGLocationRec);

by the current one in SVN http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/ide/debugmanager.pas?view=markup&revision=22348&root=lazarus and rebuild your Lazarus.

Best regards, JoshyFun

Reply by email