| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > WindowManager > WindowManager Methods >====== Kill (shut down the WindowManager object) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[insertrecord execute insert record activity .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[open a virtual to execute on event openwindow windowmanager .htm|{{btn_next_n.gif|Next page}}]] | | || **Kill, VIRTUAL, PROC** {{blk2blue.jpg|blk2blue.jpg}} The **Kill **method frees any memory allocated during the life of the object and performs any other required termination code. Kill returns a value to indicate the status of the shut down. **Implementation:** Kill sets the Dead property to True and returns Level:Benign to indicate a normal shut down. If the Dead property is already set to True, Kill returns Level:Notify to indicate it is taking no additional action. Typically, the Kill method is paired with the Init method, performing the converse of the Init method tasks. The Run method calls the Kill method. Return value EQUATEs are declared in ABERROR.INC. **Return Data Type:     **BYTE **Example:** **ThisWindow.Kill PROCEDURE()** ** CODE** ** IF PARENT.Kill() THEN RETURN Level:Notify.** ** IF FilesOpened** **  Relate:Defaults.Close** ** END** ** IF SELF.Opened** **  INIMgr.Update('Main',AppFrame)** ** END** ** GlobalResponse = CHOOSE(LocalResponse=0,RequestCancelled,LocalResponse)** **See Also:**     [[dead shut down flag .htm|Dead]], [[init initialize the windowmanager object .htm|Init]], [[run run this procedure or a subordinate procedure .htm|Run]]