This includes two tweaks that are necessary to be able to
restore the
demo.st Cairo demo from a saved image. First,
#returnFromSnapshot
callbacks should run at a high priority. Because it reloads
shared
libraries and modules, a concurrent process might start
using the shared
library before it's been loaded. With the heavy usage of
Delay in the
SDL demos, this was routinely happening. However, this does
not protect
against other #returnFromSnapshot callbacks. To do so, I
hacked a
little and run the DLD callback separately, rather than with
Object>>#changed:.
Another point, not covered by the patch, is that it is not
necessary to
call SDL_VideoQuit. Doing so actually can cause dangling
pointers all
over the place.
Paolo
_______________________________________________
help-smalltalk mailing list
help-smalltalk gnu.org
http://lists.gnu.org/mailman/listinfo/help-smalltalk
|