The MASM Forum

General => The Campus => Topic started by: xandaz on November 19, 2020, 10:43:12 PM

Title: Application stays deactivated in memory after being closed.
Post by: xandaz on November 19, 2020, 10:43:12 PM
     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