<div class="gmail_quote">On Tue, Jun 12, 2012 at 1:20 AM, 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">
Perfectly understandable.<br>
<br>
I finally found the source of the problem in my code. I have about 40<br>
functions which have at least one VTK class in their argument. In one of the<br>
functions, I do dynamic memory allocation and use *malloc()* and *free()*<br>
functions. This function has one argument as *vtkDoubleArray **. When I<br>
comment out this function, my code ends successfully and can successfully<br>
delete several created *vtkDoubleArray *pointers. But when this function is<br>
active, the program fails in deleting *vtkDoubleArray*s. I checked the<br>
function to deallocate all the allocated arrays correctly. I don't know why<br>
this gives me the following error when mycode reaches its end.<br>
<div class="im"><br>
/Windows has triggered a breakpoint in mycode.exe.<br>
This may be due to a corruption of the heap, which indicates a bug in<br>
</div>mycode.exe or any of the DLLs it has loaded./<br>
<br>
Thanks,<br>
Ahmad<br></blockquote><div><br></div><span style>Ahmad,</span></div><div class="gmail_quote"><font color="#222222" face="arial, sans-serif"><br></font></div><div class="gmail_quote"><font color="#222222" face="arial, sans-serif">Again, why no small, compilable example??<br clear="all">
</font><br>David</div>