EMX: CLR_E_OUT_OF_MEMORY Error when building project with Visual Studio 2008 Professional

Hi tmcccr,

There is not any double Arrays in this project. This project has many files and many lines of code. The error disappears when I comment an amounth any type of lines in any class files.

Regards
Jentze

Hi

I have a little (600 KB) VS2010 project which generates the CLR_E_OUT_OF_MEMORY ERROR. If someone in GHI is interested please contact me.

Regards
jentze

Is it one large assembly? By design, there is a limit on maximum size, it is about 700KB. But you can split your library so this is not a major limitation.

Hi,

Actually You need only one class which is 6KB when zipped. Where do you want me to send it?

regards
jentze

Email to ghielec@ ghielectro… Please include a link to this post in email.

We got the email.
The limit in your case is 65KB per assembly/PE file and you are hitting that limit. The solution is to split your assembly into more assemblies.
The PE file uses 16 bit variables to index into structures (65KB limit), but if you use just IL code, I think you can get bigger assemblies.