Hi,
that's probably because you save the image on the system with the
little endian. It fails because you try to read an unsigned int but
Java supports only signed ones so it's interpreted badly like a
negative number.
There's no simple solution. The JSqueak should be rewritten to use
'long' instead of 'int' almost everywhere (+million of other hacks) or
some user-defined 4-byte number type (+billion of other hacks) must be
used for it. Maybe it could be possible to check negative int values
everywhere they can appear and handle it...
Does someone have a better idea?
Cheers,
-- Pavel
On Sat, Jun 28, 2008 at 6:29 PM, Victor Rodriguez <
[hidden email]> wrote:
> Hello,
>
> Since JSqueak is not yet able to save an image, I tried to use the
> Squeak 1.1 VM with the mini image shipped with JSqueak.
>
> Using Squeak, I can save the image and reload just fine. But if I
> then open the image with JSqueak, JSqueak fails after trying to grow
> the object memory past 60,000 objects.
>
> Does anyone have a hint?
>
> Thanks,
>
> Victor Rodriguez.
>
>