|
From: | Nima Talebi |
Subject: | Re: [swarm-hackers] Help on Heatbugs (Git) |
Date: | Thu, 19 Nov 2009 09:24:05 +1100 |
- (void)updateGraphicalDisplays {
// Update any displays with current model state.
#if THREADED > 0
if([lock tryLock]) {
[NSThread detachNewThreadSelector:@selector(updateHeatSpaceDisplay)
toTarget:self
withObject:nil];
[lock unlock];
}
if([lock tryLock]) {
[NSThread detachNewThreadSelector:@selector(updateHeatbugDisplay)
toTarget:self
withObject:nil];
[lock unlock];
}
#else
[heatSpaceDisplay updateDisplay];
[heatbugDisplay updateDisplay];
//. Inform ourselves that updates are complete and graphical views
//. should be re-displayed.
[self swarmHasUpdatedNotification];
#endif
//. [self viewNeedsDisplay: [_delegate heatbugSpaceView]];
}
Hey Nima,I don't have git, can you email me a tar ball of the source directly (off-list) and I will give it a try.ScottOn Nov 18, 2009, at 1:00 AM, Nima Talebi wrote:_______________________________________________Hi All,
I've almost got it all working, one last problem that's truly difficult to debug (for me).Could someone please clone this......and run it on Mac OS X.You can enable/disable threading in the build preprocessor macros - doesn't seem to be related to that at all however.The app runs as expected for some random number of minutes, and then freezes; There is no crash, no traceback, no messages on the console.In Debug mode, when all the extra assertions and strict checks are enabled, no violations are made.While you can see that the psudo RNG is active (the evolution of the swarm is identical each time), the app freezing point is quite random.I'm out of ideas.Nima
swarm-hackers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/swarm-hackers
_______________________________________________
swarm-hackers mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/swarm-hackers
[Prev in Thread] | Current Thread | [Next in Thread] |