[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem
I think I know what the problem is. The planet object I am trying
to get is the same one calling this object. So, apparently you
cannot try to get your parent object in another call to the
database. Bummer.
Tim Brown wrote:
> Can someone tell me why this code kills the server?
>
> gIndexImpl_Int gi =
> (gIndexImpl_Int)database().objectForName("gameIndex");
> planetImpl_Int hp =
> (planetImpl_Int)database().objectForName(homePlanetKey.getKey());
>
> The Impl_Int classes are proxy objects. The call for
> gIndexImpl_Int works. The second call to get the
> planetImpl_Int kills the server. Both keys or "names" are
> valid. I am using the same call with the same planetKey in
> another class. I know this because I have a viewer which
> shows me what is in the database and it finds that planet.
> Any ideas? Oh yes, this call is from another ozone proxy
> object called raceImpl_Int.
>
> This code is for a game and can be downloaded from my web
> site, see my sig.
>
> --
> Tim Brown
> URL: http://www.incenter.org
--
Tim Brown
URL: http://www.incenter.org
- Follow-Ups:
- Re: Problem
- From: Falko Braeutigam <falko@softwarebuero.de>
- References:
- Problem
- From: Tim Brown <Tim.Brown@incenter.org>