Thread: Avisynth+
View Single Post
Old 10th January 2020, 12:36   #5056  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by stax76 View Post
I think MeGUI sets it to null even if there are still instances active, isn't that wrong?
Instances of what? You can have more than one script environment running in separate processes/threads.

In the code to which you linked, the "AVS_linkage = 0;" statement is preceded by the proper "DeleteScriptEnvironment()" which is correct.

The "delete pstr->env;" statement for Avisynth 2.5x is however not recommended, see here.
__________________
Groucho's Avisynth Stuff

Last edited by Groucho2004; 10th January 2020 at 12:41.
Groucho2004 is offline