Running the following function in my code results in a crash when reading a file next.
Function Test()
SetFolder( "music/" )
File$ = GetFirstFile() : Track = 0
Repeat
If File$ <> ""
Track = Track + 1 : Music_Playlist$[ Track ] = "music/" + File$
File$ = GetNextFile()
EndIf
Until File$ = "" Or Track = Music_MaxTracks
SetFolder( "" )
EndFunction
What is the expected output?
I expect the Music_Playlist$ array to contain filenames. (which it does)
What do you see instead?
After the function call, the next time I read a file, the program crashes.
What version of the product are you using?
1.08 beta 8
On what operating system?
Shameful Windows 8
Please provide any additional information below.
I believe the issue is related to the setfolder commands. If I change the top of the test function to be:
SetFolder( "music/" )
SetFolder( "" )
ExitFunction
The program will crash as above, which tells me it's not the GetFirst/GetNext commands.
I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]