Clr_e_out_of_memory

Hi everyone,

I’m trying to port the apache activemq C# api called NMS to NETMF. Up to now I fixed all problems regarding missing classes, function names, generics etc. and I can successfully compile the code now. But I get a build-error called “CLR_E_OUT_OF_MEMORY” and I don’t know how to find the exact reason for that. I read all the information I found in this forum and on google about the error message but all the decribed errors seem to occur during runtime, but my project can’t even be built. Any suggestions?

Hi Ansgar ,

which board do you use? Is the deployment file too big for the device you use?

Curious, how would you benefit from apache activemq?

Please post more of the build output window. IIRC, there is also a 64K library limit.

@ Cypher: I’m using the EMX board but I think the error does not depend on the board. It also occurs when trying to build a deployment file for the Microsoft emulator.
@ Gus: I’m working for a car manufacturer here in germany and we use an acitvemq server to connect the devices in our test setup for infotainment development. We are looking for an embedded board with hardware interfaces like CAN, GPIO, UART, etc. to connect some car components to this infrastructure. The embedded device we are looking for should be very easy to program and to debug. We are also expermenting with some linux and windows ce boards.
@ William: My VS output is in german - unfortunately - here is my translation:

“compiling finished – 0 errors, 10 warnings
MMP : error MMP0000: CLR_E_OUT_OF_MEMORY
========= Build: 0 successfull, error at 1, 0 current, 0 skipped ========
========= Clean up: 0 successfull, error at 0, 0 skipped =======”

Thanks for your aid!

Can you provide procedure for us to flow to duplicate the error on our bench?>

Try increasing your build output detail to see if something pops up.

Tools/Options/Projects and Solutions/Build and Run/MSBuild project build output verbosity/Detailed

I think I’ve found the solution for my problem here:

http://www.dotnetsolutions.co.uk/blog/archive/2010/08/31/introducing-the-meta-data-processor/

According to this explanation about the Meta Data Processor I divided my project into smaller assemblies and now I can successfully compile, build and run it.

1 Like

In case it helps anyone else, when I encountered this error turning on detailed build output (as suggested by William) revealed the problem:

1> Exceeded maximum size of string table: 32787
1>MMP : error MMP0000: CLR_E_OUT_OF_MEMORY

In other words, the sum of all the string constants in my project exceeded what appears to be a 32K limit.

2 Likes