swarm-support
[Top][All Lists]
Advanced

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

Strange problems with graph library


From: Axel von Kamp
Subject: Strange problems with graph library
Date: Fri, 19 Mar 1999 18:33:57 +0000

Hi,

I downloaded the limited graph library (graph-1.4.1.tar.gz) along with
the two example programs (Bank, DynamicGraph) from the Santa Fe ftp
server.
The example programs work fine, but as soon as I began to use the
library for my program I got segfaults. Closer analysis revealed that
this is related to the *length* of the string which is used as a label
when displaying a node. When I use a string with 2, 6, or 10 characters
as a label for a node the program crashes. Strings of a different length
(I've tested only up to 10 characters so far) work fine.
To reproduce this behaviour you can modify ModelSwarm.m in
DynamicGraph-1.4.1. In buildObjects you can change the string which is
used to label the nodes:
    [theNet addNode: [[[DiGraphNode createBegin: [self getZone]]
                        setNodeLabel: "Node"]
                       createEnd]];
                                       +++++ try different strings here
For displaying the nodes the graph library uses OvalNodeItem which
belongs to the Swarm gui library. Are there any known problems with
NodeItems? 

Regards,
Axel

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