View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0014866 | MediaMonkey Addons | Other | public | 2018-06-09 19:33 | 2018-06-12 15:29 |
Reporter | zvezdan | Assigned To | |||
Priority | none | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | Windows | OS | - | OS Version | XP |
Summary | 0014866: Script.UnRegisterHandler "SDB_OnIdle" generates error "List index out of bounds" | ||||
Description | If Script.UnRegisterHandler "SDB_OnIdle" is executed in SDB_OnIdle routine -> the mentioned error happens, but only if Script.RegisterEvent SDB, "OnIdle", "SDB_OnIdle" is executed before Script.RegisterEvent SDB, "OnTrackListFilled", ... or Script.RegisterEvent SDB, "OnChangedSelection". | ||||
Steps To Reproduce | 'This code generates error: Sub OnStartUp() Script.RegisterEvent SDB, "OnIdle", "SDB_OnIdle" 'Script.RegisterEvent SDB, "OnChangedSelection", "SDB_OnChangedSelection" Script.RegisterEvent SDB, "OnTrackListFilled", "SDB_OnTrackListFilled" End Sub Sub SDB_OnIdle() Script.UnRegisterHandler "SDB_OnIdle" End Sub 'Sub SDB_OnChangedSelection() 'End Sub Sub SDB_OnTrackListFilled() End Sub 'This code doesn't generate error: Sub OnStartUp() 'Script.RegisterEvent SDB, "OnChangedSelection", "SDB_OnChangedSelection" Script.RegisterEvent SDB, "OnTrackListFilled", "SDB_OnTrackListFilled" Script.RegisterEvent SDB, "OnIdle", "SDB_OnIdle" End Sub Sub SDB_OnIdle() Script.UnRegisterHandler "SDB_OnIdle" End Sub 'Sub SDB_OnChangedSelection() 'End Sub Sub SDB_OnTrackListFilled() End Sub | ||||
Tags | No tags attached. | ||||