Abdelrazak Younes wrote:

> This string might be modified by some class in main thread while being
> read at the same time by a buffer clone in the export thread. If the
> memory reserved by basic-string is big enough we should be fine but if
> not basic_string will allocate another chunk of memory and delete
> previously used one. So, if this is really the culprit, 2 choices:
> 1) easy one: reserve some memory for babel_ in Langage ctor
> (basic_string::reserve() should exist).
> 2) protect babel_ with a mutex.

The babel_ member variable is not changed at all during the export. 
Therefore it cannot be a question of reserved memory.


Georg

Reply via email to