2013-04-01 136 views
2

我正在使用glib 2.0框架。一段時間後,我的C程序輸出此錯誤:無法理解Glib錯誤

GLib-CRITICAL **: g_hash_table_foreach_remove_or_steal: assertion `version == hash_table->version' failed

有人可以告訴我這是什麼意思一般?谷歌沒有真正幫助很多。謝謝

+0

通常表示您正在導致表的結構不同步。 (像在迭代表格時移除項目等) – Wiz

回答

7

谷歌搜索與您所提供產生的文本:

This usually indicates that you did a g_hash_table_remove() (or g_hash_table_insert(), g_hash_table_replace() or similar) while iterating over the same hash table. I didn't spot where this could happen.

here服用。

希望您現在有足夠的信息來查找代碼中的錯誤。

+0

這是否也適用於迭代列表,如GSList? – Goaler444