<div dir="ltr">Hi,<div><br></div><div>vtk 7, msvc 14, windows 10<br><div><br></div><div>I've had this problem before and thought it was something bad in my tool chain. But I've rebuild everything from scratch and it's still a problem.</div><div><br></div><div>If I do something simple like</div><div><br></div><div>string s1 = sourceFiles->GetFileNames()->GetValue(i);<br></div><div><br></div><div>it runs fine in debug mode. When I compile in RelwithDebInfo it crashes with a bad allocation.</div><div>When I have a look at the object the there is garbage where the string is supposed to be. As if it hasn't been initialised. I am calling an  sourceFiles->Update() beforehand.</div><div><br></div><div>Interestingly if I do</div><div><br></div><div>cout << sourceFiles->GetFileNames()->GetValue(i);</div><div>string s1 = sourceFiles->GetFileNames()->GetValue(i);<br></div><div><br></div><div>it will print to console and then crash on the next line.</div><div><br></div><div>Is anyone else having this problem?</div><div><br></div><div>Cheers</div><div>ollie</div></div></div>