[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: heatbug error
From: |
Manor Askenazi |
Subject: |
Re: heatbug error |
Date: |
Fri, 2 Feb 96 17:23:30 MST |
> Heatbugs compiles fine but I get a segmentation fault at run-time.
>
> John Carnahan
> --Graduate Student. Dept. of Biology UCLA --
> --(310) 206-4079
John,
I think you hit the bug addressed by the e-mail message I sent a while
ago... If this is true then you are probably running Solaris. Could you
email me if you are running an OS other than Solaris.
Regards,
Manor.
----- Note: this is a rerun no new bugs to report :-) -----------------
********************
* Bug Report & Fix *
********************
The following bug has been discovered thanks to the unforgiving
nature of the Solaris string-manipulation code :-) First spotted
by Matthew Hare at the Macaulay Land Use Research Institute then
by Doug Donalson at UCSB - thanks Doug for taking the time to do
a debug session over the phone!!!
In file:
..wherever../swarm/swarmlibs/simtools/ProbeDisplay.m
The line in the method createEnd, which reads:
widgets[i] = [VarProbeWidget createParent: topFrame] ;
Should be replaced with:
widgets[i] =
[[VarProbeWidget createBegin: [self getZone]] setParent: topFrame] ;
You may not want to bother making this change if heatbugs does not
crash on your machine. In any case all you will need to do is type
make in the simtools directory and then make whatever demo was not
working previously.
---
Buggy Code - Oh the Unbearable Shame of it!
Verily, I should be cast away from the Swarm community,
To the barren desert hell of custom coded simulations,
Forever rewriting grid spaces and graph widgets.
Manor.