<div class="gmail_quote">On Mon, Jun 11, 2012 at 8:22 PM, cel02000 <span dir="ltr"><<a href="mailto:cel02000@yahoo.com" target="_blank">cel02000@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I used the following.<br>
<br>
vtkPolyData * singlePolyData = vtkPolyData::New();<br>
vector< vtkPolyData * > vectorOfPolyData;<br>
<br>
Then I store the content of a file by vtkTecplotReader to singlePolyData and<br>
then:<br>
vectorOfPolyData.push_back( singlePolyData );<br>
<br>
Actually I don't initialize the vector. However, when I try to initialize<br>
the vector with the following, I get Debug Assertion Fail.<br>
vectorOfPolyData[0] = vtkPolyData::New().<br>
<br>
Ahmad<br></blockquote><div><br></div>As always, short, compilable example code goes a long way!<div><br></div><div><div><div>#include <vtkSmartPointer.h></div><div>#include <vtkPolyData.h></div><div><br></div>
<div>#include <vector></div><div><br></div><div>int main()</div><div>{</div><div> vtkPolyData * singlePolyData = vtkPolyData::New();</div><div> std::vector< vtkPolyData * > vectorOfPolyData;</div><div> vectorOfPolyData.push_back( singlePolyData );</div>
<div> vectorOfPolyData[0]->Delete();</div><div><br></div><div> return 0;</div><div>}</div></div><div><br></div><div>That compiles and runs fine, and DebugLeaks is quiet for me. Please create a similarly long and fully compilable example of your problem if you are still having one.</div>
<br></div><div>David</div></div>