BadAlloc X 错误

发布于 2024-08-30 08:12:00 字数 479 浏览 2 评论 0原文

我在尝试构建 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遇见了你 2024-09-06 08:12:00

这是 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文