BadAlloc X 错误
我在尝试构建 GTK 程序时遇到一些问题。
当我编译它时,我不断收到此错误:
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
(Details: serial 195 error_code 11 request_code 53 minor_code 0)
我已将其追溯到以下似乎导致该错误的命令:
gtk_box_pack_start(GTK_BOX (Top_Graph), Widget_Get (Graph_Cpu), TRUE, TRUE, 0);
Top_Graph 和 Graph_Cpu 都是 GtkVbox Widgets。
有谁见过这样的错误,他们能给我一些关于它是如何引起的建议吗?
Im having some problems with a GTK program im trying to build.
When i compile it i keep getting this error:
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
(Details: serial 195 error_code 11 request_code 53 minor_code 0)
Ive traced it down to the following command that appears to be causing it:
gtk_box_pack_start(GTK_BOX (Top_Graph), Widget_Get (Graph_Cpu), TRUE, TRUE, 0);
Top_Graph and Graph_Cpu are both GtkVbox Widgets.
Has anyone ever seen an error like this, and could they give me some advice as to how it is caused.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 X 服务器错误。这些错误是异步报告的(在发出错误命令后的某个时间)。尝试使用 --sync 命令行选项运行您的程序,看看会发生什么。
This is X server error. These errors are reported asynchronously (some time after the erroneous command was issued). Try running your program with --sync command line option and see what then happens.