Recent

Author Topic: The MessageBox when process is stopped  (Read 5347 times)

clandestino

  • Newbie
  • Posts: 3
The MessageBox when process is stopped
« on: June 18, 2006, 11:51:36 pm »
Bonjour,
I noticed many times using lazarus that after compiling and launching my app to see if everything was ok,  when I stop it, Lazarus sends a messagebox with the caption : 'execution interrompue' in the french version...
This wouldn't be a problem except the fact that very often, it goes under one of the other windows and everything in Lazarus is unavailable until I press the ok button of this messagebox!!!

This happens to me more than 20 times a day and obliges to minimize the other windows to find that messagebox that lost the focus.

Would'nt it be possible to just write this kind of message in the message window? (Where we get compilation messages?)

Thanx
Clandestino

CCRDude

  • Hero Member
  • *****
  • Posts: 502
RE: The MessageBox when process is stopped
« Reply #1 on: June 19, 2006, 09:08:29 am »
Is this Windows or another OS?

Because I remember a Windows+Delphi-app bug (which included the Delphi IDE itself) that causes exactly that - modal messages going below others.

If it's Windows, for your own apps (and the Lazarus IDE would probably need as well), call the following function at the very beginning of the project:
Code: [Select]
procedure DisableProcessWindowsGhosting;
var DisableProcessWindowsGhostingImp: procedure;
begin
   @DisableProcessWindowsGhostingImp :=
      GetProcAddress(GetModuleHandle('user32.dll'),
                     'DisableProcessWindowsGhosting');
   if (@DisableProcessWindowsGhostingImp <> nil)
    then DisableProcessWindowsGhostingImp;
end;


(found some time again somewhere when looking, and it works :D )

Anonymous

  • Guest
RE: The MessageBox when process is stopped
« Reply #2 on: June 19, 2006, 06:44:42 pm »
I think in the debugger options you can disable the messagebox
something like *show message on stop*
(Sorry no further details i use the german version)

Anonymous

  • Guest
Re: RE: The MessageBox when process is stopped
« Reply #3 on: June 19, 2006, 10:44:31 pm »
Quote from: "Anonymous"
I think in the debugger options you can disable the messagebox
something like *show message on stop*
(Sorry no further details i use the german version)


thanck you, didn't see it....
 Problem solved

 

TinyPortal © 2005-2018