news:64**********************************@w1g2000p rd.googlegroups.com:
Hello,I bet you have some multithreading access error. Ensure that your threads
I'm getting a fairly reproducible Access Violation error when I call
the std::Vector.push_back() function on a CString. It's my current
guess that I'm corrupting memory somewhere else (possibly) and it's
effecting this line of code. Does anyone have any suggestions as to
how to approach this issue? One more thing, the error is often an
Access Violation but sometimes it says something about HEAP
corruption. Also, this is just the latest incarnation of this code, I
have also tried a version that just concatenate CStrings and another
version that concatenated std::strings with equally confusing errors.
Any ideas? Thanks folks.
do not read or write any shared variables without proper locking. If you
are not able to spot the error by the code inspection, then I suggest the
Intel Thread Checker tool - it finds such kind of errors for you
automatically (although not necessarily faster than yourself ;-)
HTH
Paavo