Can anyone see why I get an error here

Hi All.

This is making me crazy… crazier…

I have a window to create a new window with a textfield, into which you add a playlist name.

var methodRecreateScreenSaverFileList as FolderItem = SpecialFolder.Documents.Child (textfield1.text)

If I use the above code, it fails with

IOException Error : 35

However if I hardcode

var methodRecreateScreenSaverFileList as FolderItem = SpecialFolder.Documents.Child ("myMovieScreenSaverMovieList.txt”)

Help?

That would implicate whatever was entered in textfield1. An illegal character perhaps?

And do you get this error when the variable is declared and initialized or only later, when you try to access the file?

Copy “textfield1.text” into a local variable. Add a break point in the code and inspect what is actually in there.

1 Like

Wait a sec guys, I don’t think we have enough info here. The exception isn’t occurring on that dim statement.

@Michael_Cebasek please show us the code that you have after this line, including the line where the debugger stops with the exception.

Please tell us what platform this is too.

Hi Guys.

Found my problem. At around 0100 this morning.

My file was open.

I feel like such a dolt.

Sigh.

Regards