In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.