Hi all,
I am devloping an application in VC++ with Visual Studio 2005. In this
applicatin, Threadpool and stl classes are there. All threads will
use(sending by pointer to vector) stl vector simultaneously for reading and
writing purpose. Sometimes, application getting crash. I think, vectors are
threadsafe. It is getting crash at vector iterators. I checked in call stack
also. How to avoid this problem without synchronization?

Signature
Thanks & Regards,
Alex.
Cholo Lennon - 22 Oct 2007 14:03 GMT
You have to synchronize. Reading and writting from different threads is not
thread safe in STL
--
Cholo Lennon
Bs.As.
ARG
> Hi all,
>
[quoted text clipped - 8 lines]
> Thanks & Regards,
> Alex.