Notifications
Clear all
[Closed] How to clean the memory ?
May 15, 2004 5:18 pm
Hi,
I have a problem, and this is an example =>
- I open 3Ds max and a new script
- I make a script :
fn test =
( print 2
)
registerTimeCallback test
- I evaluate the script
- I press the Play button on my timeline
- In my listener appears :
2
2
2
…
-
Everything is alright !
-
I close the script and I delete everything in my listener
-
I make a new script :
fn test2 =
( print 3
)
registerTimeCallback test2
- I evaluate the script
- I press the Play button on my timeline
- In my listener appears :
2
3
2
3
2
…
- This is not what I had expected !
- I wanted :
3
3
3
…
=> So my problem is that parts of a previous script stay !
Can anyone help me with this problem ?
Because I always have to reboot 3Ds max when I make changes to my script (debug).
Thanks
Greets
Zombie
1 Reply
May 15, 2004 5:18 pm
Each new callback you add is executed on top of any existing registered callbacks. You need to unregister any callbacks you no longer wish to be called. Details about how to do so should be in the online help.
RH