English 中文(简体)
什么防止出现例外情况?
原标题:What prevents an exception from being caught?
  • 时间:2011-11-11 04:53:58
  •  标签:
  • c++
  • winapi

我在2005年建立了Win32 C++。 在计算法分崩离析并试图提一下 st点末时,有1项尝试({})排在法典的一组栏目上,有3项功能深重:即计价人,而不是排出例外,方案投向变幻器,告诉我有了一个无动于衷的赢得32的例外情况,在我的上述职能中发现了以下障碍:

msvcr80.dll!:inavlid_parameter_noinfo()
msvcr80.dll!:invoke_watson(....)
msvcr80.dll!:_crt_debugger_hook(...)

我怎么能防止夸张被叫作? 这是在30分钟模拟结束时发生的,当时,除非我能够追捕和记录例外情况,否则我失去所有结果。 这种类似的审判/捕获物结构过去一直在运作——是否有影响这种工作的汇编环境? 帮助?

最佳回答
问题回答

Just because you have a catch(...) doesn t mean you can catch and recover from all exceptions. Not all exceptions are recoverable.

你们的问题可能是,你在捕获说明中掩盖问题的第一个例外。

你们需要把 de光放在方案上,并打破所有的例外情况,制定法典

标准图书馆集装箱没有检查任何逻辑错误,因此本身从未排除任何例外。

Specifically, for std::vector only method that throws an exception is std::vector::at().
Any Undefined Behavior w.r.t to them will most likely lead your program to crash.

您将需要使用Windows SEH和C++特殊处理处理处理,以收集视窗特定例外,这些例外不是C++标准。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签