<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1505" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Microsoft Sans Serif">
<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>
<DIV>&nbsp;</DIV>
<DIV>Brian Dotson</DIV>
<DIV>National Energy Technology Laboratory</DIV>
<DIV>Department of Energy</DIV></BODY></HTML>