THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/05/2005 at 12:55, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform: Windows ;
Language(s) : C++ ;
---------
Hi All,
Now this must be very stupid of me.
I use the MyTagPlug::Init(GeListNode*node) to initialize this and that.
just for fun (not really) added a passcounter.
It shows that Init is called multiple times, even when dragging a slider!
So i added a blocking: increment a PassCounter on every pass of Init.
if (PassCounter is >0) return false;
And i added a decrementer in MyTagPlug::Free(GeListNode*node).
This should work out fine: every time a new instance is made, one initialization, every deletion of the tag: a decrement of the PassCounter.
Not so: it shows several inits and free's.
Think its not only my plug, tested it with the SDK 'LookAtCamera' tag. Same things hapening.
What is this ? What am i doing wrong?
With Regards,