gtk程序运行得过程中的告警,编译的时候没有任何的错误 (进来看看,help me)

jaes 2003-10-31 02:47:14

Gdk-CRITICAL **: file gdkimage.c: line 42 (gdk_image_unref): assertion `GDK_IS_I
MAGE (image)' failed
_-------------------------------------------------------

Gtk-WARNING **: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/pixbufs/widgets in the buffer have been modified since the iterator was created.
You must use marks, character numbers, or line numbers to preserve a position across buffer modifications.
You can apply tags and insert marks without invalidating your iterators,
but any mutation that affects 'indexable' buffer contents (contents that can be referred to by character offset)
will invalidate all outstanding iterators


redhat linux 7。1 gtk2。0


...全文
70 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
shornmao 2003-11-07
  • 打赏
  • 举报
回复
错误一:
由于是gtk_unref_image报错,十有八九是你重复销毁了两次同一个GdkImage对象,这是指针使用的常见错误之一。

警告一:
原因不详,根据警告内容重新检查源代码。
Fu7iang 2003-11-06
  • 打赏
  • 举报
回复

(gdk_image_unref): assertion `GDK_IS_IMAGE (image)' failed

错误提示里不是说得很明白了吗,结合源代码分析一下就行啦

要么就贴出来让大家帮你分析啊
jaes 2003-11-03
  • 打赏
  • 举报
回复
感谢 终于有人回复了!:)
我主要是吧bmp图片装载到内存中

iterator 这个我怀疑是我不停的改变他的位置有关系
allen_wang 2003-11-03
  • 打赏
  • 举报
回复
对buffer有了任何一次操作之后,iterator就失效了。只有mark还能有效。
linux1028 2003-11-02
  • 打赏
  • 举报
回复
Invalid text buffer iterator: either the iterator is uninitialized, or the characters/pixbufs/widgets in the buffer have been modified since the iterator was created.
杀仪
longenic 2003-11-02
  • 打赏
  • 举报
回复
图片的格式可能出了点问题

23,110

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧