See title - this caught me off guard; I'd expect an exception to be thrown? Sub Process_Globals End Sub Sub AppStart (Args() As String) Dim sftp1 As SFtp ' Not initialised Log("Before") sftp1.List("A/B/C") Log("After") End Sub