In File.cs the setter ends with Mode = value at line 441. It creates a recursion. Setting Mode to value is useless since the getter checks the stream to return the mode. This problem leads to a stack overflow on some files, when there is a problem and the stream cannot be opened, so the access mode remains Closed and then a recursion occurs until the stack crashes.
In File.cs the setter ends with Mode = value at line 441. It creates a recursion. Setting Mode to value is useless since the getter checks the stream to return the mode. This problem leads to a stack overflow on some files, when there is a problem and the stream cannot be opened, so the access mode remains Closed and then a recursion occurs until the stack crashes.