swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copying an object in swarm-v.1.0.2 ? (i.e. copy message)


From: Ken Cline
Subject: Re: Copying an object in swarm-v.1.0.2 ? (i.e. copy message)
Date: Wed, 23 Jul 1997 19:37:18 -0400 (EDT)

I think the short answer is:
   (a) message [anObject copy] is blocked
and
   (b) message [anObject copy: aZone] is implemented.

Roger (Burkhart) posted a while back a suggestion about how
to implement a copy method.  See:

http://www.santafe.edu/projects/swarm/archive/list-archive.9612/0006.html

I hope this helps.

Ken.


On Wed, 23 Jul 1997, Jae Chan Oh wrote:

> Hi, I have updated my swarm to the version 1.0.2.
> 
> I have a problem that didn't exist with the old swarm version.
> 
>       tMember = [member copy];
> 
> worked fine. (This is to have a duplicate of "member")
> 
> Now I'm getting a runtime error saying the following. Any ideas?
> I've tried to use [member copy: [self getZone]] but didn't work either.
> What is the proper way to copy an object?
> 
> Thanks.
> 
> --- The runtime error message follows.
> 
> *** event raised for error: BlockedObjectAlloc
> *** function: _i_Object_s__copy(), file: DefObject.m, line: 487
> > Requested operation is defined by the Object superclass of the GNU
> > Objective C runtime system, but is blocked from usage because its default
> > implementation is incompatible with the model of zone-based allocation
> > established by the defobj package.  To allocate, free, or copy objects
> > that use the defined model of zone-based allocation, one of the messages
> > create:, createBegin:/End, drop, or copy: must be used instead.
> *** execution terminating due to error
> IOT trap/Abort (core dumped)
> 
>                   ==================================
>    Swarm-Support is for discussion of the technical details of the day
>    to day usage of Swarm.  For list administration needs (esp.
>    [un]subscribing), please send a message to <address@hidden>
>    with "help" in the body of the message.
>                   ==================================
> 

_________________________________________________________
Ken Cline                             address@hidden
SAIC                                 VOICE (410) 571-0413
Annapolis, MD                          FAX (301) 261-8427


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]