GlobalVariables disappear?
Well I now found out it is not the debugger!
Just requesting one variable wipes out all - useful feature!
This is set by my script:

Now my EA wants to request the first two variables like:
globNameRiskAcct = "PTC Risk Acct:"+(string)AccountNumber(); globNameRiskMagi = "PTC Risk Magi:-548436835"; bool a = GlobalVariableCheck(globNameRiskAcct), b = GlobalVariableCheck(globNameRiskMagi), c = (a) ? GlobalVariableGet(globNameRiskAcct,AccWeight) : false, d = (b) ? GlobalVariableGet(globNameRiskMagi,MagWeight): false; ..
After this little bit of code the List of global variables looks like:

Does this happen to anybody else?
Gooly
gooly: Does this happen to anybody else? |
|
I found it:
A function called in OnDeInit() contains GlobalVariablesDeleteAll() that deletes all global variables.
But now I don't understand why the global variables were deleted at the start of this EA and before OnInit() was executed?
OnDeInit() shouldn't have been touched at all at this moment!
Thank you!
Gooly
Hi,
I just have recognized that a list of global variables (GlobalVariableSet(..)) disappear?
At least as soon as I start the debugger the whole list is wiped out - before my code tries to request the variables or their values?
Does anybody what I can do??
Thanks in advance!
Gooly