2 REM ExpectedError: BC30752
\r
3 REM ErrorMessage: 'On Error' statements are not valid within 'SyncLock' statements.
\r
12 Dim i As Integer = 0
\r
14 On Error GoTo ErrorHandler
\r
20 Resume ' Execution resumes with the statement that caused the error
\r