Below is the text of a problem report I have raised on the MQL Service Desk. The screenshot I've attached shows that it's also allowing duplicates under some circumstances. Has anyone else noticed this?
Client Terminal Build and Version (32 or 64 bit)
Build 940 Version 4.0 (64 bit)
Problem description
A Global Variable deleted using the Delete button in the Global Variables dialog, or programmatically, is found to still exist when the Terminal is closed and restarted.
Sequence of action
Create a Global Variable
Delete it using the dialog in Tools...Global Variables
Delete apparently successful
Restart Terminal
List Global Variables
Obtained result
Global Variable once again appears in the list
Expected result
Once deleted, the Global Variable should no longer be there.
Additional details
I was able to try the above "sequence of action" on the previous version of MT4 (by not allowing MT4 to upgrade to build 940 on one of my instances). The deletion of the global variable worked as expected.
Furthermore, I have noticed in some circumstances that Global Variables created in EAs are being duplicated. The attachment is a screenshot showing a GV created by the MyFxBook EA appearing numerous times, a situation that should not be possible. Unfortunately, I have not been able to reproduce this secondary behaviour on demand.
Client Terminal Build and Version (32 or 64 bit)
Build 940 Version 4.0 (64 bit)
Problem description
A Global Variable deleted using the Delete button in the Global Variables dialog, or programmatically, is found to still exist when the Terminal is closed and restarted.
Sequence of action
Create a Global Variable
Delete it using the dialog in Tools...Global Variables
Delete apparently successful
Restart Terminal
List Global Variables
Obtained result
Global Variable once again appears in the list
Expected result
Once deleted, the Global Variable should no longer be there.
Additional details
I was able to try the above "sequence of action" on the previous version of MT4 (by not allowing MT4 to upgrade to build 940 on one of my instances). The deletion of the global variable worked as expected.
Furthermore, I have noticed in some circumstances that Global Variables created in EAs are being duplicated. The attachment is a screenshot showing a GV created by the MyFxBook EA appearing numerous times, a situation that should not be possible. Unfortunately, I have not been able to reproduce this secondary behaviour on demand.