调用g_error后,应用程序会crash
时间:2009-05-21 来源:xw_max
cheese_2.24.2
在cheese_webcam_create_video_display_bin ()函数中,如果不能创建 display pipeline,则会调用g_error,之后,程序会如此打印:
** ERROR **: Unable to create display pipeline.
aborting
Aborted
使用gdb跟踪的话,发现此时程序会收到一个SIGABRT.
问题:只要是调用了g_error,程序的默认操作就是退出么?
在cheese_webcam_create_video_display_bin ()函数中,如果不能创建 display pipeline,则会调用g_error,之后,程序会如此打印:
** ERROR **: Unable to create display pipeline.
aborting
Aborted
使用gdb跟踪的话,发现此时程序会收到一个SIGABRT.
问题:只要是调用了g_error,程序的默认操作就是退出么?
相关阅读 更多 +