OK, my issue is fixed.
the āI had too many static variableā statement was good.
I massively changed in my code static variables to const (I have a lot of strings and ints that are not modified during run time)
Then it allows me to declare new ones. This small test can help to point that there is a limitation of the amount of static variables . just add a lot of declarations of static ints, and the error ā209 CLR_E_OUT_OF_RANGEā in file āMPPā (Memory PP???) will occur. My code is several thousands line, so I will not post it there, but I am sure that this is pureley related to amount of static variables, but I canāt say how much⦠maybe over 255?
@ Architect : This exemple can help to point the issue.
//Lot of other static variables before
//Testing limitations of static variables
static int A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16;
static int B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, B11, B12, B13, B14, B15, B16;
static int C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15, C16;
static int D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16;
static int E1, E2, E3, E4, E5, E6, E7, E8, E9, E10, E11, E12, E13, E14, E15, E16;
static int F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16;
static int G1, G2, G3, G4, G5, G6, G7, G8, G9, G10, G11, G12, G13, G14, G15, G16;
static int H1, H2, H3, H4, H5, H6, H7, H8, H9, H10, H11, H12, H13, H14, H15, H16;
static int I1, I2, I3, I4, I5, I6, I7, I8, I9, I10, I11, I12, I13, I14, I15, I16;
static int J1, J2, J3, J4, J5, J6, J7, J8, J9, J10, J11, J12, J13, J14, J15, J16;
//uncomment the following lines causes the CLR_E_OUT_OF_RANGE error
//static int K1, K2, K3, K4, K5, K6, K7, K8, K9, K10, K11, K12, K13, K14, K15, K16;
//static int L1, L2, L3, L4, L5, L6, L7, L8, L9, L10, L11, L12, L13, L14, L15, L16;
//static int M1, M2, M3, M4, M5, M6, M7, M8, M9, M10, M11, M12, M13, M14, M15, M16;