swarm-support
[Top][All Lists]
Advanced

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

problem with String create: setC:


From: Steve Brophy
Subject: problem with String create: setC:
Date: Fri, 9 Oct 1998 11:31:43 -0400

In porting our application up to Swarm 1.3, we found a String create
line in our code which caused a core dump.  It can be worked around by
changing the zone or using a separate setC, so looked like it might be a
bug?

(We are running on Solaris)

This test program works:

#import <simtools.h>
int
main (int argc, const char **argv)
{
        id key;
        key = [String create: globalZone setC: "testing"];
}

This also works:
        key = [String create: globalZone];
        [key setC: "testing"];

And this works (different zone):
        key = [String create: scratchZone];
        [key setC: "testing"];

But this was our code:
        key = [String create: scratchZone setC: "testing"];

and causes:
        error: ComponentZone_c (instance)
        ComponentZone_c does not recognize allocBlock;
        Abort (core dumped)

thanks, Steve

Steve Brophy     address@hidden
Center for Electronic Commerce,  ERIM,     Ann Arbor MI


                  ==================================
   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]