Re: locale_to_utf8 multithread
- From: Daniel Elstner <daniel kitta googlemail com>
- To: Fabian Jacquet <fabian jacquet gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: locale_to_utf8 multithread
- Date: Mon, 25 Jun 2007 17:55:44 +0200
Am Montag, den 25.06.2007, 17:36 +0200 schrieb Fabian Jacquet:
> I'm a new user of GLib and I have a problem using locale_to_utf8
> function with multiple threads.
>
> When 2 threads use locale_to_utf8 at same time, I have an access
> violation exception.
>
> Is it a bug or a bad use?
> I simply do this in the threads:
> Glib::ustring name = Glib::locale_to_utf8("valeur avec �tc");
Should be safe. While GLib does cache and re-use iconv_t descriptors,
it is supposed to be thread-safe. Are you sure it is really
Glib::locale_to_utf8() causing the access violation? Can you reproduce
the problem using the GLib C API?
--Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]