Sub AppStart(....)
Dim thr As Thread
thr.Initialise("thr")
thr.Start(Me,"CheckForFile",Array(Dir,""))
Wait For File_Result(Result As Boolean)
Log("Does it exist? " & Result)
End Sub
Sub CheckForFile(dirObj As Object, fnObj As Object)
Dim dir As String = dirObj
Dim fn As String = fnObj
Dim exists As Boolean = File.Exists(dir,fn)
CallSubDelayed2(Me, "File_Result", exists)
End Sub