List Info

Thread: #returnFromSnapshot tweaks




#returnFromSnapshot tweaks
country flaguser name
Switzerland
2008-04-17 01:46:04
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-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )