In the DlgProc, my app creates HotKeys:
Should I do anything to destroy the HotKeys before the app terminates?
Or (like arrays, etc.) do they get cleaned up automatically by PB or Windows, or is this a potential problem?
Code:
Select Case CbMsg Case %wm_initdialog '----------------------------------------------------------------------------------------------- 'set up Hot Keys: iRet = Timer ReDim nAtom(%HK_Suspend To %HK_Suspend + iNumCmds -1) nAtom(%HK_Suspend) = GlobalAddAtom ("My Hotkeys" + Str$(iRet + %HK_Suspend)) ' iRet makes unique identifier RegisterHotKey CbHndl, nAtom(%HK_Suspend), %CTRL, Asc("S") 'CTRL-S 'Suspend ' nAtom(%HK_Resume) = GlobalAddAtom ("My Hotkeys" + Str$(iRet + %HK_Resume)) RegisterHotKey CbHndl, nAtom(%HK_Resume), %CTRL, Asc("R") 'CTRL-R 'Resume
Or (like arrays, etc.) do they get cleaned up automatically by PB or Windows, or is this a potential problem?
Comment