Back

Topic

[KB606]Memory leak when making unnecessary use of Alloc_Buffer

Tags: Scada Basic, Scripting

12 years ago
By RM
Options
Print
Applies to:

PcVue all versions.


Summary:

Memory leak when making unnecessary use of the SCADA Basic instruction ALLOC_BUFFER.


Details:

It has been observed that sometimes, if ALLOC_BUFFER is used to allocate a memory buffer when it is not needed, for example before an instruction that allocates a buffer automatically (Example LAN (“GET_LISTS”)), the buffer may not be completedly freed even after using a FREE_BUFFER instruction. This results in a memory leak.

The solution is not to use ALLOC_BUFFER if it is not needed.


Created on: 20 Nov 2012 Last update: 13 May 2024