For a long time did not make careless problem, as if there are errors are to find for a while to come out, but this error I am depressed old KERN-EXEC3 error found for a long time depressed ah

Source: Internet
Author: User

Private variables are defined in the class.

PRIVATE:
Cdescarrayflat * iitemarray;

In constructl, Initialization is performed.

Void cpage: constructl (tint iitemnumber, tint Atype ){
 
Cdescarrayflat * iitemarray = new (eleave) cdescarrayflat (iitemnumber );

}

Then, in other classes, the pointer is always not found for a long time.

Finally, I finally found that a temporary variable was initialized, but the class variable was not initialized, but I forgot the same name. The main reason was that I was wrong and used to use the temporary variable, depressed, my time is wasted. I hope you will not make the same mistake.

Correct InitializationCodeYes:

Void cpage: constructl (tint iitemnumber, tint Atype ){
 
Iitemarray = new (eleave) cdescarrayflat (iitemnumber );

}

 

Oh, a big lesson. I used to make such a mistake before, but I found it all at once. The main reason is that I didn't want to think about it, so I got used to making logic dizzy.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.