Problems encountered during VC debugging

Source: Internet
Author: User

When debugging audio and video image transmission, I encountered such a strange problem. The general process is as follows:


1. The original project file is in the D:/avio folder.

2. As a major change to the project file is required, the results are unpredictable. copy the file to D:/avio_backup for backup.

3. Use D:/avio_backup for modification. However, after debugging, I found that the process is incorrect. I used this project file as well as vc6.0. I suspect that the debugger is faulty during source code debugging. I modified a file, but I found that the file in D:/avio_backup is not changed. Strange !!?? Which file is modified? Looking back at similar situations, I found the file in D:/avio, and the project file in this folder was changed.

4. To test and debug whether the project file in D:/avio_backup is referenced in D:/avio, I compress the project in D:/avio and change the position.

5. debug D:/avio_backup again. When the file is debugged, a window prompting "not found in source file XXX" is displayed, which is displayed as an assembly. After reading this, the debugger prompts that the file that cannot be found is under the current folder.


6. Then I chose "build" --> "batch build" to clear all the original *. OBJ files and re-compile the entire project. In this way, the problem does not occur.

7. then I want each source file to correspond to one *. OBJ, compiled *. OBJ should contain the path information of the source file so that the debugger can find the source file. however, due to the backup of the entire project file, *. OBJ still contains the path information of the previous source file. At least re-compile the entire project.

 

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.