ReleaseHandle problem.
I don't know why but the Ultima SDK version I got has an infinite recursion on the ReleaseHandle function:
So, it always gave me an StackOverflow Exception.
I fixed it like this:
Hope this helps someone.
I don't know why but the Ultima SDK version I got has an infinite recursion on the ReleaseHandle function:
Code:
protected override bool ReleaseHandle()
{
return ReleaseHandle();
}
So, it always gave me an StackOverflow Exception.
I fixed it like this:
Code:
protected override bool ReleaseHandle()
{
if(!IsInvalid && !IsClosed)
Close();
if(IsClosed)
return true;
return false;
}
Hope this helps someone.