[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Generic tool
On Sat, 4 Dec 2010 16:42:48 , Peter Slegg <email@example.com> wrote:
> On Sat, 4 Dec 2010 07:07:10 -0800 (PST), WongCK <firstname.lastname@example.org> wrote:
> > > The exit button still doesn't work which I think is to do with
> > > app.id (doesn't exist but is in the dfrm examples). I bodged
> > > it with app.avid to make it compile.
> > Just call exit() to force it to quit.
> > May be not what you want (clean up etc) but it ought to quit the program.
> Clicking on the Exit button (not the window closer) gets into wclose which calls
> ApTerm (below) but it doesn't close properly.
> /* catch the AP_TERM message (application termination) */
> while( wglb.first)
> printf("in ApTerm:2\n");
> ApplWrite( app.avid, WM_CLOSED, wglb.first->handle, 0, 0, 0, 0);
> EvntWindom( MU_MESAG);
> exit( EXIT_SUCCESS);
I changed the id to:
ApplWrite( _AESapid, WM_CLOSED, wglb.first->handle, 0, 0, 0, 0);
and it closes properly. This might not be the best solution.
Dominique did say that the DFRM example needed an update to reflect
the latest version.