Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to analyze the problem that VS2003 programs can not be debugged

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

How to analyze the VS2003 program can not debug the problem, I believe that many inexperienced people are helpless about this, this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

My colleagues and I have been working on this all afternoon, but there is one problem that we can't solve. Her VS2003 program could not be debugged, breakpoints set would not stop, and reinstalling the machine did not solve the problem. It seems that the way to think of should be exhausted, but I also have no idea, my computer installed VS2005 can not be used to develop ArcObjects based on. NET program, but also have to bite the bullet, who called me manager.

I wonder if there is a problem with the project files and ask her to migrate them to the new project. Later, she texted me that she had found the reason, but she didn't know how to solve it. The problem gets weirder, runs two or three times, and then it doesn't work.

She discovered that MapControl's WhereClause setting was incorrect for VS2003, causing the program to throw an exception. In addition, she sent me the code to see, very simple, a MapControl and then add a Command project. How can it be so weird? It's getting weirder and weirder. When I looked at her code, I noticed a problem. She released ArcObjects with the following statement:

ESRI.ArcGIS.Utility.COMSupport.AOUninitialize.Shutdown();

m_AoInitialize.Shutdown(); //Releases COM objects

I checked the code for statements without m_AoInitialize.Initialize(), no initialization.

Then I asked her to see if AppROT.exe was there at the end of the run, but the VS2003 program was not necessarily left behind, ArcMap or ArcCatalog would be launched. But if these programs aren't active, there's a problem. There is indeed such a thing, and it is also like this on other people's machines, but the number of times it can be debugged is different. At this point I have basically confirmed that this is the case, let her remove the m_AoInitialize.Shutdown() at the back to see, but she is busy with something else, my classmates are urging me to pack up things and get off work, can only solve the next time.

After reading the above, do you know how to analyze VS2003 program can not debug the method? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report