View Issue Details

IDProjectCategoryView StatusLast Update
0014866MediaMonkey AddonsOtherpublic2018-06-12 15:29
Reporterzvezdan Assigned To 
PrioritynoneSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformWindowsOS-OS VersionXP
Summary0014866: Script.UnRegisterHandler "SDB_OnIdle" generates error "List index out of bounds"
DescriptionIf 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
TagsNo tags attached.

Activities

zvezdan

2018-06-12 15:29

updater   ~0050524

I cannot edit the Project. I wrongly put this Issue to the MediaMonkey Addons / Others, but it should be in MediaMonkey (current) / Framework: Scripts/Extensions.