[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug Fix Numero Uno... Neeexxxxtttt
From: |
Manor Askenazi |
Subject: |
Bug Fix Numero Uno... Neeexxxxtttt |
Date: |
Wed, 22 May 96 05:22:47 MDT |
***************************************************************************
--- BUG FIX --- BUG FIX --- BUG FIX --- BUG FIX --- BUG FIX --- BUG FIX ---
***************************************************************************
Following a quick phone-debug session with Steve Emsley (thanks Steve!)
at the University of Warwick, the following patch has been generated,
and should be used by those people who get a crash in heatbugs on line
104 of MessageProbeWidget.m (i.e. a seg.fault occurs on the createEnd
of a MessageProbeWidget).
------------------------------------------------------------------------
Please replace lines 99-101 of swarm/src/simtools/MessageProbeWidget:
objWindows = (int *) malloc(sizeof(int)*argNum) ;
argNum *= 2 ;
myWidgets = (Widget **) malloc(sizeof(Widget *)*argNum) ;
With:
if(argNum)
objWindows = (int *) malloc(sizeof(int)*argNum) ;
argNum *= 2 ;
if(argNum)
myWidgets = (Widget **) malloc(sizeof(Widget *)*argNum) ;
else
myWidgets = (Widget **) malloc(sizeof(Widget *)) ;
Then recompile the simtools library (type 'make' within swarm/src/simtools).
Then recompile heatbugs. It should now work.
------------------------------------------------------------------------
In addition to finding this bug, our discussion made me realise that the
probe system is not really apparent to the user-base on a first trial of
the system. Tomorrow I will post a little tutorial which shows some of the
cool stuff which can be done with probes, even with the simple heatbugs
example.
Regards,
Manor.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug Fix Numero Uno... Neeexxxxtttt,
Manor Askenazi <=