<HTML>
<P><A href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A></P>
<P>I created a vtk-5.2.0 vtkUnsignedCharArray, called its InsertValue() a few times, called its SetArray() first with save=1 and then with save=0, and then called its Delete() which gave an exception as follows:</P>
<P>First-chance exception at 0x7c812a5b in myvtk.exe: Microsoft C++ exception: int at memory location 0x0012f780..<BR>
HEAP[myvtk.exe]: Invalid Address specified to RtlValidateHeap( 01000000, 01153478 )</P>
<P>This error does not happen if I eliminate the call to SetArray() with save=0 or if I use vtk-5.0.4 rather than vtk-5.2.0. I also tried setting the new 4th argument of the 5.2 SetArray() to vtkUnsignedCharArray::VTK_DATA_ARRAY_FREE but still got the error (I am using a malloc array).</P>
<P>Any suggestions for getting SetArray() with save=0 to work?</P>
<P>Thanks</P>
<P>- cdp<BR>
</P></HTML>
<BR>