[GEM-dev] Re: Gem/src/Base GemCache.cpp,1.4,1.4 GemCache.h,1.3,1.3

IOhannes m zmoelnig zmoelnig at iem.at
Thu Mar 25 18:40:39 CET 2004


zmoelnig at iem.at wrote:
> Zitiere IOhannes m zm?lnig <zmoelnig at users.sourceforge.net>:
> 
> 
>>Update of /cvsroot/pd-gem/Gem/src/Base
>>In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30297
>>
>>Modified Files:
>>	GemCache.cpp GemCache.h 
>>Log Message:
>>added a reset()-method to re-set an instance without having to destroy
>>and re-create it (see [gemhead])
>>

and then i changed the code a bit to enable [gemhead]s to be created on 
the fly and immediately start rendering (without having to restart it 
manually by sending [0,1( to the [gemwin])

anyhow, this (and the prior changes to the GemCache) created a bunch of 
other mis-behaviour but i finally got an idea what made Gem crashing 
when objects where modified (e.g: sending floats to [rotate]) while 
rendering was turned off: all the objects hold local copies of the 
pointer to the GemCache. AND they modify the GemCache with setModified().

so i added a magic-number to the GemCache to ensure that the pointer is 
still valid. (and accordingly changed all the involved objects)

so i hope this issue is really fixed for now.
any tests ?


mfg.as.dra
IOhannes






More information about the GEM-dev mailing list