Clr_e_fail

What causes this error?
Whenever I add a next line code, this error appears. ???

Not enough details. Show your code please.

Someone told me that I’ve gone over the allowed space for the device and advised me to split my application into 2 projects. ???
How? I am completely confused here.
I’m wondering if I could use an SD card to solve this error.

You are still not giving us any info.

here is my code


            #region Prin15
            else if (comboPrin.SelectedItem.Equals(principles[15]))
            {
                listIW.Suspended = true;
                listIW.Clear();
                listIW.AddItem(para[1] + " / " + para[3]); listIW.AddItem(para[1] + " / " + para[9]); listIW.AddItem(para[1] + " / " + para[35]); listIW.AddItem(para[2] + " / " + para[21]); listIW.AddItem(para[2] + " / " + para[22]); listIW.AddItem(para[2] + " / " + para[24]);
                listIW.AddItem(para[2] + " / " + para[35]); listIW.AddItem(para[2] + " / " + para[37]); listIW.AddItem(para[2] + " / " + para[39]); listIW.AddItem(para[3] + " / " + para[1]); listIW.AddItem(para[3] + " / " + para[5]); listIW.AddItem(para[3] + " / " + para[13]);
                listIW.AddItem(para[3] + " / " + para[17]); listIW.AddItem(para[3] + " / " + para[25]); listIW.AddItem(para[3] + " / " + para[30]); listIW.AddItem(para[3] + " / " + para[31]); listIW.AddItem(para[3] + " / " + para[33]); listIW.AddItem(para[3] + " / " + para[35]);
                listIW.AddItem(para[4] + " / " + para[12]); listIW.AddItem(para[4] + " / " + para[14]); listIW.AddItem(para[4] + " / " + para[27]); listIW.AddItem(para[4] + " / " + para[32]); listIW.AddItem(para[5] + " / " + para[3]); listIW.AddItem(para[5] + " / " + para[11]);
                listIW.AddItem(para[5] + " / " + para[14]); listIW.AddItem(para[5] + " / " + para[17]); listIW.AddItem(para[5] + " / " + para[18]); listIW.AddItem(para[5] + " / " + para[22]); listIW.AddItem(para[5] + " / " + para[33]);
                listIW.AddItem(para[5] + " / " + para[34]); listIW.AddItem(para[5] + " / " + para[35]); listIW.AddItem(para[6] + " / " + para[11]); listIW.AddItem(para[6] + " / " + para[35]); listIW.AddItem(para[6] + " / " + para[39]);
                listIW.AddItem(para[7] + " / " + para[10]); listIW.AddItem(para[7] + " / " + para[12]); listIW.AddItem(para[7] + " / " + para[14]); listIW.AddItem(para[7] + " / " + para[22]); listIW.AddItem(para[7] + " / " + para[33]); listIW.AddItem(para[7] + " / " + para[35]);
                listIW.AddItem(para[8] + " / " + para[14]); listIW.AddItem(para[9] + " / " + para[10]); listIW.AddItem(para[9] + " / " + para[12]); listIW.AddItem(para[9] + " / " + para[19]); listIW.AddItem(para[9] + " / " + para[35]);
                listIW.AddItem(para[10] + " / " + para[5]); listIW.AddItem(para[10] + " / " + para[7]); listIW.AddItem(para[10] + " / " + para[9]); listIW.AddItem(para[10] + " / " + para[22]); listIW.AddItem(para[10] + " / " + para[32]);
                listIW.AddItem(para[10] + " / " + para[34]); listIW.AddItem(para[10] + " / " + para[35]); listIW.AddItem(para[11] + " / " + para[5]); listIW.AddItem(para[11] + " / " + para[6]); listIW.AddItem(para[11] + " / " + para[12]);
                listIW.AddItem(para[12] + " / " + para[2]); listIW.AddItem(para[12] + " / " + para[7]); listIW.AddItem(para[12] + " / " + para[9]); listIW.AddItem(para[12] + " / " + para[11]); listIW.AddItem(para[12] + " / " + para[18]); listIW.AddItem(para[12] + " / " + para[33]);
                listIW.AddItem(para[12] + " / " + para[35]); listIW.AddItem(para[12] + " / " + para[37]); listIW.AddItem(para[12] + " / " + para[38]); listIW.AddItem(para[13] + " / " + para[3]); listIW.AddItem(para[13] + " / " + para[9]); listIW.AddItem(para[13] + " / " + para[14]);
                listIW.AddItem(para[13] + " / " + para[26]); listIW.AddItem(para[14] + " / " + para[1]); listIW.AddItem(para[14] + " / " + para[3]); listIW.AddItem(para[14] + " / " + para[4]); listIW.AddItem(para[14] + " / " + para[7]);
                listIW.AddItem(para[14] + " / " + para[8]); listIW.AddItem(para[14] + " / " + para[31]); listIW.AddItem(para[14] + " / " + para[35]);
                //listIW.AddItem(para[14] + " / " + para[37]);

Here is my declaration of those string of array.


 static string[] principles = new string[] {"","1. Segmentation", "2. Taking Out", "3. Local Quality", "4. Asymmetry", "5. Merging", "6. Universality", "7. Nested Doll", "8. Anti-weight", "9. Preliminary Anti-action", "10. Preliminary Action",
            "11. Beforehand Cushioning", "12. Equipotentiality", "13. The Other Way Round", "14. Sheroidality - Curvature", "15. Dynamics", "16. Partial or Excessive Actions", "17. Another Dimension", "18. Mechanical Vibration", "19. Periodic Action", "20. Continuity of Useful Action",
            "21. Skipping", "22. Blessings in Disguise/Turn Lemons into Lemonade", "23. Feedback", "24. Intermediary", "25. Self-service", "26. Copying", "27. Cheap short-living Objects", "28. Mechanics Substitution", "29. Pneumatics and Hydraulics", "30. Flexible Shells and Thin Films",
            "31. Porous Materials", "32. Color Changes", "33. Homogeneity", "34. Discarding and Recovering", "35. Parameter Changes", "36. Phase Transitions", " 37. Thermal Expansion", "38. Strong Oxidants", "39. Inert Atmosphere", "40. Composite Materials"};
        static string[] para = new string[] {"","1. Weight of Moving Object", "2. Weight of Stationary", "3. Length of Moving Object", "4. Length of Stationary", "5. Area of Moving Object", "6. Area of Stationary", "7. Volume of Moving Object", "8. Volume of Stationary", "9. Speed", "10. Force(Intensity)",
            "11. Stress/Pressure", "12. Shape", "13. Stability of Object", "14. Strength", "15. Durability of Moving Object", "16. Durability of Non-moving Object", "17. Temperature", "18. Illumination Intensity", "19. Use of Energy by Moving", "20. Use of Energy by Stationary",
            "21. Power", "22.  Loss of Energy", "23. Loss of Substance", "24. Loss of Information", "25. Loss of Time", "26. Quantity of Substance", "27. Reliability", "28. Measurement Accuracy", "29. Manufacturing Precision", "30. Object-affected Harmful",
            "31. Object-generated Harmful", "32. Ease of Manufacture", "33. Ease of Operation", "34. Ease of Repair", "35. Adaptability/Versatility", "36. Device Complexity", "37. Difficulty of Detecting", "38. Extent of Automation", "39. Productivity"};

by the way I have 39 principles, each having more than 15 items on a listbox.

How large is your project overall? What code causes the error or it is any code you add will result in this.

it’s almost 78MB, and I’m sure it will get bigger than that.
The code works as long as I commented the other codes.

78mb!! Is that the size of your project sources? This is a very much impossible number on netmf.

If you gave a very large project and adding more code is giving you the error, any code, then you need to build your project in separate dlls. When I say large, I mean a projects with tens of source files and hundreds of thousands of lines of code.

This is like when GHI has is library in separate dlls

I got 78mb by checking the properties of my project.
awww. so what do i do now to make it work.? I’m really doomed if I can’t finish it by this week. :o
I hope someone could help me.

Is building my proj on separate dlls the only solution?

It is very simple! Your project have classes. Move some of the classes in a separate DLL. Then all DLLs can be part of one solution. It it half an hour to get all this done.

Wow 78MEG, that’s almost hard to imagine. You seriously need to offload stuff not only into other projects but the SD card as well. I think the max program space you’re going to see available is around 8 meg.

Correct me if I’m wrong here Gus.