The MessageBox when process is stopped lazarus / 6-IDE-CodeTools ---------------------------------------------------------------------- clandestino · 2006-06-18 21:51 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 · 2006-06-19 07:08 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 ) ---------------------------------------------------------------------- Anonymous · 2006-06-19 16:44 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 · 2006-06-19 20:44 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