swarm-support
[Top][All Lists]
Advanced

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

Problem with BatchSwarm and EZGraph


From: Marian Mihalo
Subject: Problem with BatchSwarm and EZGraph
Date: Fri, 20 Apr 2001 20:33:58 +0200

Well,

could anybody say me a difference between:

withFeedFrom:[modelSwarm getBugList]  andSelector: M(getFoodNumber)];

and

withFeedFrom:self  andSelector: M(getFoodNumber)];


How function is with self, what is returned when I use a "self" etc.?????

In ObserverSwarm.m I have in the same object(Graph): withFeedFrom:self
andSelector: M(getFoodNumber)];
and in BatchSwarm.m I have : withFeedFrom:[modelSwarm getBugList]
andSelector: M(getFoodNumber)];

Thanks for your help...

Marian


----- Original Message -----
From: Marian Mihalo <address@hidden>
To: <address@hidden>
Sent: Thursday, April 19, 2001 4:54 PM
Subject: Problem with BatchSwarm and EZGraph


> Specification:
>
> RH 6.2
> Swarm 2.1.1
> Objective C
>
> Problem:
>
> My last report was with batchSwarm problem...After detailed searching of
> error with gdb debuger I identificate the problem. Problem is here:
>
>
>      >printf("BatchSwarm>create minerals.output\n");
>      >foodGrapher = [EZGraph createBegin: self];
>      > [foodGrapher setGraphics: 0];
>      > [foodGrapher setFileOutput: 1];
>      > foodGrapher = [foodGrapher createEnd];
>      > [foodGrapher createSequence: "minerals.output" withFeedFrom:
>      > [modelSwarm getBugList]  andSelector: M(getFoodNumber)];
>
> When I set a "setFileOutput" on value 0 (without saving), my simulation in
> batch swarm are working correctly. But when I want a save to file, here is
a
> problem -> Segmentation Fault...
>
> After it, I identificated, that problem is in :
>
> withFeedFrom: [modelSwarm getBugList]  andSelector: M(getFoodNumber)];
>
> But I don't know where...
>
> In ObserverSwarm everything are working correctly (with and without
> saving)...
> The "getFoodNumber" are return a float value...I have it in Bug.m,
> ObserverSwarm.m and BatchSwarm.m
>
> getFoodNumber:
>
> - (float)getFoodNumber          { return [modelSwarm getFood1Count]; }
>
>
> Could anybody help me????
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.249 / Virus Database: 122 - Release Date: 13.4.2001
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.250 / Virus Database: 123 - Release Date: 18.4.2001


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