are there any limitations on G400 codesize?
near on 800kb compiled size i get exceptions like CLR_E_OUT_OF_RANGE.
I search for methodes to build greater applications. are there any basics to understand how cli generates such errors?
are there any limitations on G400 codesize?
near on 800kb compiled size i get exceptions like CLR_E_OUT_OF_RANGE.
I search for methodes to build greater applications. are there any basics to understand how cli generates such errors?
Your assemblies and allocated memory need to be under 700k on any NETMF device.
Break your program into multiple assemblies.
pe size:
pe off exe 92kb
pe of libs between 10 and 100kb
the whole project including all (exe, user lib, ghi libs) is in sum 758kb
at last compile a checked the optimize option for build operations.
the code is a little bit smaller.
question: do you recommend code optimation?
the last time I experiences the clr build error, the sum of all libs and exe was about 800kb
I am not sure then!
is there existing any official specification?
in this case, I suspect youâre going to need to get into the weeds, with someone who can look at your project. Perhaps youâre hitting a stack size limitation, or some other quirk, but I suspect youâll need multiple eyes on your actual project.
sounds like assembly size is ok. is this a compile or runtime error.
if a runtime error, what does the debugger tell you?
Enable the verbose output. I found this handy to locate the offending module that was causing the issue.
There is a bit about this here.
thank you very much, i start testing!
have you ever analysed? the amout of data is enourmous
Yes, verbose mode is ⌠verbose.
And yes, it is that mountain of output that will help you find the cause, or at least help you narrow down the possibilities. You donât have to read every line - just zoom into the spot where things failed and youâll get a lot more contextual information than you get with the non-verbose output.