[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Marshal Problem

Robert Evans

7/7/2006 7:13:00 PM

Hi Eric,

The Mac OS X version, which works is 1.8.4 (2005-12-24). The windows
version is ruby 1.8.4 (2005-12-24) [i386-mswin32].

The same classes are used to dump and load, from the same irb session
even.

Bob


On Jul 6, 2006, at 6:32 PM, Eric Hodel wrote:

> On Jul 6, 2006, at 5:47 PM, Robert Evans wrote:
>
>> I've got a serialized object that I am trying to read back in with
>> Marshal. When it reads the class back in, it complains with the
>> following message:
>>
>> undefined class/module ;
>>
>> This is running on windows. Under Mac OS X, everything works fine
>> (Note: I serialize and de-serialize on the same platform, so it's
>> not a cross platform issue.)
>>
>> Anyone have any clues as to why it is looking to resolve a class
>> called ";" from the serialized file?
>
> What are the ruby versions? Do you have the same classes loaded on
> each side?
>
> --
> Eric Hodel - drbrain@segment7.net - http://blog.se...
> This implementation is HODEL-HASH-9600 compliant
>
> http://trackmap.rob...
>
>
>


3 Answers

Yukihiro Matsumoto

7/8/2006 2:23:00 PM

0

Hi,

In message "Re: Marshal Problem"
on Sat, 8 Jul 2006 04:13:11 +0900, Robert Evans <robert.evans@acm.org> writes:

|The same classes are used to dump and load, from the same irb session
|even.

Can you show us how to reproduce the problem?

matz.

Robert Evans

7/9/2006 2:47:00 PM

0

Hi,

The objects involved were fairly complex, so I will try to create a
simpler case that exhibits the problem.

Bob


On Jul 8, 2006, at 7:22 AM, Yukihiro Matsumoto wrote:

> Hi,
>
> In message "Re: Marshal Problem"
> on Sat, 8 Jul 2006 04:13:11 +0900, Robert Evans
> <robert.evans@acm.org> writes:
>
> |The same classes are used to dump and load, from the same irb session
> |even.
>
> Can you show us how to reproduce the problem?
>
> matz.
>


Robert Evans

7/25/2006 12:03:00 AM

0

Hi,

Following up. I finally got back to this issue, and now everything
works fine.
I believe the problem may have had to do with reading and writing the
files that contained the marshalled objects without using the binary
flag.

Thanks for your help,
Bob


On Jul 8, 2006, at 7:22 AM, Yukihiro Matsumoto wrote:

> Hi,
>
> In message "Re: Marshal Problem"
> on Sat, 8 Jul 2006 04:13:11 +0900, Robert Evans
> <robert.evans@acm.org> writes:
>
> |The same classes are used to dump and load, from the same irb session
> |even.
>
> Can you show us how to reproduce the problem?
>
> matz.
>