Maximum number of windows reached
#1
Hello everyone,
I'm running a custom made script which opens xbmc's WindowXML and WindowXMLDialog but i always "del" the window reference after creating yet after some time using the script i get this error message in the log:

Code:
RuntimeError: maximum number of windows reached

Everything goes back to normal after restarting xbmc but it happens quite often is there a special way to close a script's WindowXML/WindowXMLDialog that i might not be aware of other than "del" the reference ?

Any help would be appreciated,
Thanks.
I wrote a program to program my program ! - programception.
Reply
#2
Information 
Update:
Found out after reaching the following code

Code:
dialog = myWindow('myWindow.xml', path, 'Default', '720p')
dialog.doModal()
del dialog
and exiting the script hence: execute self.close()

The window is somehow still open because xbmc will not close properly saying this in the log

Code:
ERROR: XBPyThread::stop - script C:\Users\Xive\AppData\Roaming\XBMC\addons\myaddon\myscript.py didn't stop in 5 seconds - let's kill it
I wrote a program to program my program ! - programception.
Reply
#3
Update 2:
From xbmc docs it says
http://mirrors.xbmc.org/docs/python-docs...wXML-close
DOCS Wrote:close(...)
close(self) -- Closes this window.

Closes this window by activating the old window.
The window is not deleted with this method.

Anyone may know how to properly delete the window so XBMC won't complain about it later.

Thank you.
I wrote a program to program my program ! - programception.
Reply

Logout Mark Read Team Forum Stats Members Help
Maximum number of windows reached0