Code:
const TMyColors: Array of TColor;
How did this even compile ?
Also "Array of" is managed type, so there is possibility the compiler did adjusted its reference count when you type casted it, so it could be freed when the code run the first time and the second raised
AV.
Also what do you mean by crash ? what is the exact message ?
Sorry for using English.