Access violation
The program '*' has exited with code 3221225477 (0xc0000005) 'Access violation'.
I receive this error when there is a specific error in Report VB script (desktop designer).
Error occurs when I am using Mid or Left method on Text.
Is there a way to catch error before application crash?
This discussion has been closed.
Comments
Hello!
To resolve this issue, you can use the String.Substring method (with a length check / String.IsNullOrEmpty) within a Try...Catch block:
For Mid(), use s.Substring(startIndex, length) in a similar way, checking s.Length first