11
3rd Party Plugins - (fb2k) / Re: Georgia-ReBORN - A Clean foobar2000 Theme
Last post by regor -Anyway here is a test file which crashes if you delete "window.IsUnload = true;" line; but works fine with it. Note the script will try to access a list of urls and close foobar immediately. So upon foobar restart, it will do the same and effectively make it unusable unless the last line of code closing foobar is removed.
Also note the interval ms affects how it's handled. 30 ms seems to work fine, but higher settings may crash too. For sure 3000 ms will crash, there is a small window of time between the shutdown request and the actual shutdown and you have to use that.
That can be avoided with a direct abort routine at the callback and a stack of request similar to your approach, but the stack should be managed at the callback (not saying all this is needed, just that it would be the best approach, but the other one may be good enough).
Alternatively, wget or similar may be used to retrieve data from web without all these problems... it may be wise to apply this fix to xmlhttp requests too (and beware of similar behaviors on any activeX object).