Search Script "Invalid pointer operation"
Posted: Fri Jul 05, 2013 10:39 am
When a Search Script calls SDB.ProcessMessages from a timer and the Auto-tag window is closed MM throws an error:
This is a sample script:
4.0.7.1511
Windows 8 x64
Code: Select all
Error executing script event
Invalid pointer operationCode: Select all
Dim bHalt
bHalt = False
Sub StartSearch(oPanel, sSearchTerm, sSearchArtist, sSearchAlbum)
Script.RegisterEvent SDB.CreateTimer(0), "OnTimer", "Timeout"
End Sub
Sub FinishSearch(oPanel)
bHalt = True
Script.UnRegisterAllEvents
End Sub
Sub Timeout(tTimer)
tTimer.Enabled = False
SDB.Tools.Sleep(1000)
SDB.ProcessMessages
If bHalt Then
msgbox("Halted! but will throw an error!")
Else
tTimer.Enabled = True
End If
End SubWindows 8 x64