Le 23/11/2014 18:34, Abdelrazak Younes a écrit :
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.
This variable is normally not modified after startup. It is as const as can be.
JMarc