|
[MAIN] [News] [Intro] [Features] [Download] [Installation] [Support] [Support+] [Docu] [Tutorial] [Bugs] [forum ] [wiki] [Mirror] [Authors] [Future] [License] [Win98 Setup Bug] [Subscribe] |
Bug DescriptionScriptBasic programs using external modules implementing external commands may use excess memory while running the interpreter.NOTE: This use of excess memory is released when the interpreter finishes program execution, thus this is not a serious memory leak. This bug does not effect severely the memory management of variations of ScriptBasic embedding the interpreter into multi-thread environment. Bug Reason, What Causes the BugWhen an external command is used the pointer pEo->pGlobalMortalList is set to point to NULL erroneously. This causes all temporary variable allocated in the external command unreleased when the external command returns.SolutionThe function COMMAND_EXTERNAM in file commands/external.c has to be altered frompEo->pGlobalMortalList = NULL;to pEo->pGlobalMortalList = &_ThisCommandMortals;set the variables correct. Bug Workaround Until Solution is AvailableThere is no workaround.AcknowledgementMitchell Greess [m.greess@solutions-atlantic.com] has discovered this bug. |