I’ve been hit with this error during my development and I thought it was the resources so I trimmed this down and still present so I am assuming it is one of the other classes, possibly the main one.
How can we know what has causes this error? It’s a totally useless error as it tells you nothing about what failed.
1>MMP : error MMP0000: CLR_E_OUT_OF_RANGE
I have even done some work to move a lot of the code into a couple of separate classes but I still get this error.
@ leforban - Thanks. I understand the failure now but I wish it would tell you which module has exceeded the allowed size.
I’ve spent all day moving code into additional classes and the main code is now much smaller but I still get this dreaded error at times and it bugs me to not know which file is causing the build error.
There is nothing in the /bin/debug/be directory other than the exe and pdb files. (I did a clean before I rebuilt it)
I just wish there was a log file of the build process so I could check but I can’t find anything.
Have you tried compiling with the log file verbosity set to ‘Diagnostic’ (the highest level)? That might tease out more information. Tools->Options, Projects and Solutions, Build and Run, and then set “MSBuild project build output verbosity” to “Diagnostic”
If that fails, I think the source for the tool that is generating this message is in the NETMF source tree. One could run it in the debugger and/or add additional log statements to get it to output exactly what it is upset about.
That doesn’t appear to be the case. The Glide.pe file alone is 392KB in size.
What this has taught me is to try and break up the code into different projects, especially when I can break it into separate classes. I move a few of the classes that handle sensor data, modem etc into there own project and the include them and add events to pass data to and from each of them. A days work so not too much overhead to change it all.