In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
VS set debugging exception trigger how to do, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, there are people who need this can learn, I hope you can gain something.
description
By default, VS2005 and VS2010 do not have exception triggers set to start debugging. You can select exception under menu debugging, and then check all abnormal interrupt cases:
C++ Exceptions
Common Language Runtime Exceptions
...
role
Accurately locate existing problems in the program, rather than crash and exit directly
note
The debugging exception information set by the user is saved in the.suo(Solution User Operation) file. If this file is not uploaded to the svn server, the debugging exception option must be reset when others download the code. If no user modifications are made, the default may not generate a.suo file, which also saves the user's layout settings
Effects in actual application scenarios
1)
In the module to achieve dynamic loading of the project inside, can call exceptions, accurately locate the exception error situation, usually null pointer
2)
When handling 0xfeefeefee pointer errors, you can accurately locate the wrong code.
3)
char szTestString[3600*1058*3] = {0};
In fact, the default stack only has 2M space. The above code exceeds the stack range and causes the program to crash. After opening the exception setting, a prompt appears: 0xC0000FD: Stack overflow
4)Run-Time Check Failure #2 - Stack around the variable 'szError' was corrupted
_TCHAR szError[32] = { 0 };
wsprintf(szError, _T("avcodec_send_packet:%d\n"), nRet);
OutputDebugString(szError);
Cause: If nRet is a very large integer, it will cause the array to go out of bounds, causing the program to crash.
impact
Symptom: When using the VS2005 c++ debugger, the file cannot be opened using the file dialog box. As long as the open file dialog box is executed, the most likely exception at 0x7703c54f is reported: 0x00006BA: RPC server unavailable error.
solution
Because debugging needs to check all exceptions in the debugging menu, remove the check marks, and the problem is solved.
Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
This article mainly introduces osd journal how to achieve one-click migration script, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
Wechat
About us
Contact us
Product review
car news
thenatureplanet
More Form oMedia:
AutoTimes.
Bestcoffee.
SL News.
Jarebook.
Coffee Hunters.
Sundaily.
Modezone.
NNB.
Coffee.
Game News.
FrontStreet.
GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.