Re: Let me elaborate (Re: [AD] Problem with Windows XP + MinGW + alegro (windowed))

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> a) i dont hook the close button to my own proc and ALLEGRO HANDLES THE
> EXIT

Ok, ok, now I've heard ;-)

>  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.

Ah ! Then it's the ExitProcess(0) line 334 that doesn't do properly its job.

> 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.

Ok.

> Wouldnt it be nice if that dialog box was not there and it just exited
> properly ?

shhhhhhhh ! Don't say that too loudly, or you'll be flamed ;-)
I agree with you, but the majority of other developers doesn't.

> The programs also hang if allegro_exit(); is called from inside a
> procedure

What do you call a procedure ? A C function or a Windows proc function ?

> This only happens in windows XP, i tryed 98 and it worked fine

Thanks for these detailed informations.

---
Eric Botcazou
ebotcazou@xxxxxxxxxx



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/