RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

ReleaseHandle problem.

Lothiack

Wanderer
ReleaseHandle problem.

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.
 

Jeff

Lord
Lothiack;813471 said:
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.

What version are you using? I made a fix for this in the maintained version on Codeplex UltimaSDK - Source Code
 

Vorspire

Knight
That reminds me Jeff, did you employ my patch change for the Skills mod I made for the SDK? It's pretty much required for it to run perfectly :p

It was a problem similar to this too.
 

Jeff

Lord
Vorspire;813480 said:
That reminds me Jeff, did you employ my patch change for the Skills mod I made for the SDK? It's pretty much required for it to run perfectly :p

It was a problem similar to this too.

I did not, I didnt see a patch.
 

Lothiack

Wanderer
Just got the lastest version. The one I had before had been downloaded from codeplex too but it seems it wasn't the lastest.

Thanks!
 

Jeff

Lord
Lothiack;813529 said:
Just got the lastest version. The one I had before had been downloaded from codeplex too but it seems it wasn't the lastest.

Thanks!

Well i just updated it, so that part had always been broken. :)
 
Top