How are you associating the data with the vtk dataset? Do you read an array and hand it to a vtk array? Also, can you run in a debugger and get a track trace? If you are running on Linux, valgrind would be even better.<br>
<br>-Berk<br><br><div><span class="gmail_quote">On 11/10/05, <b class="gmail_sendername">Brian Dotson</b> &lt;<a href="mailto:Brian.Dotson@netl.doe.gov">Brian.Dotson@netl.doe.gov</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>Hi all,</div>
<div>&nbsp;</div>
<div>I wrote a custom reader that brings our simulation results into ParaView.&nbsp; </div>
<div>&nbsp;</div>
<div>The data is an unstructured grid with multiple timesteps.&nbsp; The cells are either hexahedron or wedges.&nbsp; The data I attach to the mesh is mostly scalar with a few vectors.</div>
<div>&nbsp;</div>
<div>With most of the simulation results we look at the reader looks fine, but some of the data sets cause the following error.</div>
<div>&nbsp;</div>
<div>free(): invalid pointer 0xc2f7f70!</div>
<div>&nbsp;</div>
<div>This error happens after my code executes and I have returned the unstructured grid over to ParaView.</div>
<div>&nbsp;</div>
<div>I have done the following to debug the problem:</div>
<div>&nbsp;</div>
<div>1.&nbsp;I checked the number of arrays that I am attaching to the mesh and&nbsp;the NumberOfCellFields variable, these match.</div>
<div>&nbsp;</div>
<div>2. I checked the MaxId of all the arrays.&nbsp; These match the cell count.</div>
<div>&nbsp;</div>
<div>3.&nbsp;When I turn all the cell arrays off, I don't get the errors, and the mesh loads.</div>
<div>&nbsp;</div>
<div>Does anyone have any ideas on what the problem could be?</div>
<div>&nbsp;</div>
<div>Thanks,</div><span class="sg">
<div>&nbsp;</div>
<div>Brian Dotson</div>
<div>National Energy Technology Laboratory</div>
<div>Department of Energy</div>

</span><br>_______________________________________________<br>ParaView mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ParaView@paraview.org">ParaView@paraview.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">
http://www.paraview.org/mailman/listinfo/paraview</a><br><br><br></blockquote></div><br>