Let me elaborate (Re: [AD] Problem with Windows XP + MinGW + alegro (windowed)) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "Developers" <conductors@xxxxxxxxxx>
- Subject: Let me elaborate (Re: [AD] Problem with Windows XP + MinGW + alegro (windowed))
- From: "Colin Alston" <diskbox@xxxxxxxxxx>
- Date: Wed, 2 Jan 2002 19:38:09 +0200
If
a) i dont hook the close button to my own proc and ALLEGRO HANDLES THE EXIT
After the dialog (ie when you press yes and want to exit) the program
hangs! Then you have to
use task manager to end the program.
b) if i DO hook the close button and set a flag, then look for the flag in
my main loop, and return 0; if
the flag is >0 (ie if the close button was pressed) then it works.
Wouldnt it be nice if that dialog box was not there and it just exited
properly ?
The programs also hang if allegro_exit(); is called from inside a procedure
This only happens in windows XP, i tryed 98 and it worked fine
----- Original Message -----
From: "Eric Botcazou" <ebotcazou@xxxxxxxxxx>
To: "Colin Alston" <diskbox@xxxxxxxxxx>; "Developers"
<conductors@xxxxxxxxxx>
Sent: Wednesday, January 02, 2002 7:27 PM
Subject: Re: [AD] Problem with Windows XP + MinGW + alegro (windowed)
> > When running allegro windowed mode in window XP. When you attempt to
close
> > the program via the X in the top right hand corner (normal windows close
> > button) , it stops responding.
>
> Do you mean you don't see the message box ?
>
> Could you try the following things ?
> - in src/win/wwnd.c, line 328, add the MB_SYSTEMMODAL flag to the list of
> flags,
> - in src/win/wwnd.c, line 327, change the first argument 'wnd' into
> 'allegro_wnd',
> - in src/win/wwnd.c, line 327, change the first argument 'wnd' into
'NULL'.
>
> Recompile the lib for each proposed fix and test with your modified
exhello
> for example. Thanks in advance.
>
> ---
> Eric Botcazou
> ebotcazou@xxxxxxxxxx
>
>