Is it a bug ?
#1
hi !
i found something strange... python keep the variables in memory (xbmc cvs 04 12 13)
i launch one script, then another one, and i figure out that a var in the second script get the value stored in the forst script....

i'm not very good to make me 'understandable'...
can you understand ? thanks for help
Reply
#2
yup, this could be possible ( though i never noticed it myself)
best thing you could do is to cleanup the classes / variables at script exit with the command 'del'.

and if you look at most scripts out there you will notice they all use 'del window' at some time.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
i use del window as well...
but maybe the first script i launched don't do it... let me see...
no ! first script and second one both do a del after the domodal...

any other idea ? it looks like a bug...
Reply
#4
you probably need to delete more then only the window, for example, if you have global data (defined outside a class) you need to free that too
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
ok
it is strange cause it is the first time i see that...
never need to delete all ... ??
Reply
#6
can a scripter try to make some tests...
set a var in a script
then run a second script that read the same name var.
script 1 : set myvar=10
script 2 : read myvar = ??
Reply

Logout Mark Read Team Forum Stats Members Help
Is it a bug ?0