swarm-support
[Top][All Lists]
Advanced

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

ObjectLoader problems


From: Matthew Hare
Subject: ObjectLoader problems
Date: Mon, 18 Nov 1996 12:25:58 GMT

hi there,

I've got two questions
1)
I just wanted to know what might be causing my problems with ObjectLoader.
When I use 
[ObjectLoader load: self fromFileNamed: "batch.setup"] ;
in my version of the "HeatbugBatchSwarm" object, everything works OK.
But when I do the same for another object i.e. for this one:

@interface ShootDefault : SwarmObject

...in which I have a method "upload" which calls

[ObjectLoader load: self fromFileNamed: "shoot.setup"] ;

then I end up with a seg fault with a backtrace of 

Program received signal SIGSEGV, Segmentation fault.
0x6cae4 in _c_CreateDrop_s__createBegin_ (self=0x135ff0, _cmd=0x140db4, 
    aZone=0x0) at Create.m:39
39        newObject->zone = aZone;
(gdb) bt
#0  0x6cae4 in _c_CreateDrop_s__createBegin_ (self=0x135ff0, _cmd=0x140db4, 
    aZone=0x0) at Create.m:39
#1  0x6ca50 in _c_CreateDrop_s__create_ (self=0x135ff0, _cmd=0x136028, 
    aZone=0x0) at Create.m:28
#2  0x45a6c in _c_InFile__create_withName_ (self=0x135ff0, _cmd=0x133fd8, 
    aZone=0x0, theName=0xfee38 "shoot.setup") at InFile.m:24
#3  0x3a8bc in _c_ObjectLoader__load_fromFileNamed_ (self=0x133f68, 
    _cmd=0x130854, anObject=0x1d68a8, aFileName=0xfee38 "shoot.setup")
    at ObjectLoader.m:41
#4  0x29390 in _i_ShootDefault__upload (self=0x1d68a8, _cmd=0x130c1c)
    at shoot.m:18


What am I doing wrong?

2) 
I'm interested in rick riolo's problem with removeProbeDisplay

I've got death in my world and when a organism cops it I want to remove any
probes that I have on it at the time.
in my 'tidypop' method I include ...

        if ([org getEnergy] == 0 ) {
                [probeDisplayManager removeProbeDisplayFor: org];

my error message is the following:

Program received signal SIGBUS, Bus error.
0x61ce0 in _i_ListIndex_linked__next (self=0x29e770, _cmd=0x133d44)
    at List_GEN.m:240
240           return link->refObject;
(gdb) bt
#0  0x61ce0 in _i_ListIndex_linked__next (self=0x29e770, _cmd=0x133d44)
    at List_GEN.m:240
#1  0x3a184 in _i_ProbeDisplayManager__removeProbeDisplayFor_ (self=0x1bbac0, 
    _cmd=0x12fc54, anObject=0x21b948) at ProbeDisplayManager.m:35
#2  0x26c58 in _i_BasicExpert__tidyPop_ (self=0x1fee48, _cmd=0x131428, 
    orglist=0x205588) at basic.m:71

any ideas?

I hope I'm not wasting your time, but I'm lost...
Thanks in advance!

Matt Hare
Macaulay Land Use Research Insitute
Scotland.


reply via email to

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