I just debugged A C ++ builder program.

Source: Internet
Author: User
We use the cbuilder3 report system made N years ago.
Today, my colleague found that a tform encountered an access memory address error during construture.

After tracking, we found that an error occurred while myform: myform (tcomponent * owner): tform (owner ).CodeIt is actually empty.
After thinking for a while, start opening the Disassembly window (that is, the self-carried BCB ). After F8 several times, it is found that an error occurs during treader-> Read. At this time, I began to regret it, and my compilation was too bad. I can see that load control is based on classname, but I don't know which control is used. However, the form itself may be faulty.

Then let the colleagues find it and delete a Cool Button, re-compile and run it. Haha, everything is OK!
Let her find the rest of the job!

In our project last year, aspnet_wp often encountered a recycled problem. At that time, I was looking for a hacker from M $. After analyzing the dump file, locate the error in my code (introduced in the original blog ). Haha, it seems that you really need to study it !!!

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.