Re: [AD] 4.0.2 releasei/CVS

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


On 2002-06-20, Evert <eglebbk@xxxxxxxxxx> wrote:
> Let me see if I understand this: I need to install a handler for the close 
> request that sets a flag I need to check from my main code. I should not 
> call exit() from the handler, since I assume this is what Allegro itself 
> does, right?

Yes.  Notice the subtle hypocrisy, since the documentation warns
specifically against doing that.

> More generally though, without trapping the event in user code, the close 
> button can never assure a clean shutdown, so IMHO the default handler 
> should simply be to ignore the close request.

Exactly.

> IIRC, this used to be the default at some point during the 3.9.xx WIP 
> series. I don't really think it's a regression to change behavior that now 
> results in a crash into an ignore, but as I said, that's just IMHO.

Maybe.  It might be safer to put in some REALLY LOUD AND OBVIOUS
DOCUMENTATION warning of the future change first.

-- 
王浩禎



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