We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
In RVMDK3.05, I use simulator to debug C++ code, but it can't run to main function. (Select LPC2292 in "Options for Target" dialog when creating project)
Sample code in test1.cpp as following:
class MYCLASS { public: MYCLASS(){} ~MYCLASS(){} }; MYCLASS myobject; int main() { while (1); return 0; }
If we remove the destructor, it can run to main function. Sample code in test2.cpp as following:
class MYCLASS { public: MYCLASS(){} // ~MYCLASS(){} //remove this line }; MYCLASS myobject; int main() { while (1); return 0; }
Thank you for replying to my question. The problem was resolved. The cause of this problem is that I did not reserve RAM for the Heap.