View Issue Details

IDProjectCategoryView StatusLast Update
0017788MMW 5Extensions frameworkpublic2021-04-28 18:58
Reporterdrakinite Assigned To 
PriorityurgentSeveritycrashReproducibilityalways
Status closedResolutionduplicate 
Product Version5.0.1 
Target Version5.0.1Fixed in Version5.0.1 
Summary0017788: [COM] Access violation when using auto shuffle playlist script
DescriptionLog ID: 8E1DADE7
User posted Peke's old "Mediamonkey Scheduled Playlist Start" script here: https://www.mediamonkey.com/forum/viewtopic.php?p=480763#p480763
When attempting to utilize the script that was copied in the post, it led to the aforementioned crash.
TagsNo tags attached.
Attached Files
test.vbs (1,074 bytes)   
'==========================================================================
'
' NAME: Mediamonkey Scheduled Playlist Start v1.1
'
' AUTHOR: Peke
' DATE  : 16.10.2005
'
' INSTALL: 1. Read info above line with 'Playlist ='
'          2. Just start Script in Scheduled time and MediaMonkey Will play
'             desired playlist.
'
' COMMENT: This is third party Windows Host Script that takes advantage of
'          MediaMonkey to play desired Playlist at desired time.
'
' NOTE: Mediamonkey needs to be started before script executes
'
'==========================================================================
Dim SDB, Songs
Set SDB = CreateObject("SongsDB5.SDBApplication")
SDB.ShutdownAfterDisconnect = False

Sdb.player.playlistclear
Dim i
For i = 0 To (WSH.Arguments.Count-1)
  sdb.player.playlistaddtracks(SDB.PlaylistByTitle(WSH.Arguments.Item(i)).tracks)
Next
If SDB.Player.isPlaying or SDB.Player.isPaused then
  SDB.Player.Stop
End If
Randomize
SDB.Player.CurrentSongIndex = Int((SDB.Player.PlaylistCount+1) * Rnd)
SDB.player.Play
test.vbs (1,074 bytes)   
Fixed in build2400

Relationships

related to 0017174 closedpetr Issues with SDBApplication.Player getters and methods [COM] 

Activities

drakinite

2021-04-28 01:05

developer   ~0062935

Last edited: 2021-04-28 01:33

Duplicate of 0017174 - The issue was setting SDB.Player.CurrentSongIndex. (item #1 on the list)

peke

2021-04-28 01:26

developer   ~0062937

Last edited: 2021-04-28 01:30

Re open crash needs to be fixed ASAP and rest should be handled in 0017174 after triaging priority.

petr

2021-04-28 08:32

developer   ~0062940

Fixed

drakinite

2021-04-28 18:58

developer   ~0062950

Verified 2440