The code for the static initializer is exceeding the 65535 bytes limit
807606May 10 2007 — edited May 13 2007Hi,
I'm working on a largish project, where we use an enum to store our string identifiers, which are used in many places (UI, logging etc.) to indentify a translateable string. This is very convenient, as the compiler checks that the identifier exists, and since we only store the id , we can translate everything at display time (eg. log messages).
We just ran into a problem (see the subject) when we tried to add a new identifier into the enum. We only have a few thousand identifiers, and the project is nowhere near finished. Is there a way around it?
An unoptimal solution would be to split the enum to several parts, or to use a file based approach, but we'd rather avoid them if possible.