News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Application stays deactivated in memory after being closed.

Started by xandaz, November 19, 2020, 10:43:12 PM

Previous topic - Next topic

xandaz

     I have an application that stays in memory as deactivated after being close. Does anyone have an idea why..while TRUE
    invoke  GetMessage,addr msg,NULL,0,0
.break .if (!eax)
    invoke TranslateMDISysAccel,hMdi,addr msg
.if !eax   
    invoke  TranslateMessage,addr msg
    invoke  DispatchMessage,addr msg
.endif
.endw


    .if     uMsg==WM_DESTROY
quit:   
        cmp     noMdiChild,0
        je      end_quit
        invoke  SendMessage,hMdi,WM_MDIGETACTIVE,0,0
        mov     hCurrentWindow,eax       
        invoke  SendMessage,hMdi,WM_MDIDESTROY,eax,0
        dec     noMdiChild
        jmp     quit
        invoke  FreeLibrary,hLibEdit
        invoke  PostQuitMessage,0