Because you are overriding the Dispose
method and calling it again inside with Me.Dispose
, this method runs recursively.
You could call Dispose
with `MyBase:
MyBase.Dispose()
This will call the Dispose
on the derived class, preventing it to loop and end in a StackOverflowException
.