Thanks for info. Actually, I have been using the glib 1.2 version and the API reference for that did not mention anything about this so I clarified. Thanks, Ankur --- Sven Neumann <sven@xxxxxxxx> wrote: > Hi, > > Ankur Jain <ankur12us@xxxxxxxxx> writes: > > > If I am making a call of the form: > > > > g_hash_table_foreach( > > hash_table_ptr, my_func, user_data) > > > > > > Is it safe to modify the hash table referenced by > > "hash_table_ptr" (e.g. add/remove entries and then > > free the removed keys & values) from inside the > > "my_func" function. > > This is explicitely mentioned in the API docs: > > > http://developer.gnome.org/doc/API/2.0/glib/glib-Hash-Tables.html#g-hash-table-foreach > > > Sven > __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list