[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Heatbug.java question
From: |
Marcus G. Daniels |
Subject: |
Re: Heatbug.java question |
Date: |
18 Jan 2000 16:18:14 -0800 |
User-agent: |
Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4 |
>>>>> "DS" == David Smith <address@hidden> writes:
DS> OK, here are the diffs:
Ok, the problem is that you've dropped the modulus on bestCell, so
the coordinates go outside of the Discrete2d boundaries and memory
dereferences end up being invalid, and a segfault occurs.
You can see this if you run the model under the debugger:
$ JAVASWARMGDB=gdb javaswarm StartHeatbugs
(gdb) run
(gdb) bt
Btw, it's easier to read and apply patches if you use
"diff -r -w -c jheatbugs-old jheatbugs-new" instead of doing it
file-by-file "diff ../jheatbugs/Heatbug.java Heatbug.java".
The first command checks all the files, ignoring spaces,
and attaching headers and context for each change.
==================================
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.
- Heatbug.java question, David Smith, 2000/01/13
- Re: Heatbug.java question, Marcus G. Daniels, 2000/01/13
- Re: Heatbug.java question, David Smith, 2000/01/13
- Re: Heatbug.java question, Marcus G. Daniels, 2000/01/13
- Re: Heatbug.java question, Benedikt Stefansson, 2000/01/13
- Re: Heatbug.java question, David Smith, 2000/01/13
- Re: Heatbug.java question, Marcus G. Daniels, 2000/01/13
- Re: Heatbug.java question, David Smith, 2000/01/18
- Re: Heatbug.java question,
Marcus G. Daniels <=
- Re: Heatbug.java question, David Smith, 2000/01/19
- Re: Heatbug.java question, Marcus G. Daniels, 2000/01/19