Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 防止GTKMM捕获异常_C++_Gtkmm - Fatal编程技术网

C++ 防止GTKMM捕获异常

C++ 防止GTKMM捕获异常,c++,gtkmm,C++,Gtkmm,有没有办法防止“Gtk::Main::iteration()”捕获异常 每当处理程序中抛出异常时,它都会捕获异常,然后程序以SIGTRAP结束(在linux中)。我谨此致辞: (test.debug.bin:32233): glibmm-ERROR **: unhandled exception (type std::exception) in signal handler: what: test 不,对不起。这个未处理的异常消息只是没有消息的崩溃的一个更有用的替代方案,如果gtkmm没有这

有没有办法防止“Gtk::Main::iteration()”捕获异常

每当处理程序中抛出异常时,它都会捕获异常,然后程序以SIGTRAP结束(在linux中)。我谨此致辞:

(test.debug.bin:32233): glibmm-ERROR **: 
unhandled exception (type std::exception) in signal handler:
what: test

不,对不起。这个未处理的异常消息只是没有消息的崩溃的一个更有用的替代方案,如果gtkmm没有这样做,您会得到这个消息。您需要在自己的代码中处理信号处理程序中的异常


<>这是因为GTKMM信号处理程序实际上是由GTK+C代码调用的,编译成C,并且不能通过C代码传递一个C++异常,返回到任何C++代码可能调用的C代码。如果你没有调试?该SIGTRAP可能仅适用于调试器。从“$man 7信号”:“SIGTRAP 5核心跟踪/断点陷阱”另见: