loaddir error

BlitzMax Forums/BlitzMax Programming/loaddir error

Regular K(Posted 2006) [#1]
Im trying to use the loaddir function to get the list of files in a directory, but, even the example given for that function isn't working.

' loaddir.bmx

' declare a string array

Local files$[]

Print CurrentDir()

files=LoadDir(CurrentDir())

For t$=EachIn files
	Print t	
Next


I tried it on both release and debug, samething.

The error I get is: Unhandled Memory Exception Error

EDIT: It ogt addressed in a recent update (snyc modules) :) Good job ;)