[vtkusers] 5.2 SetArray() with save=1 causes Delete() exception:

Berk Geveci berk.geveci at kitware.com
Sat Sep 13 13:07:34 EDT 2008


Hi Calvin,

Still no luck reproducing this problem. So far, we tried Mac Leopard,
Linux Debian (also run the Valgrind memory checker), XP with VS 2003,
Vista with VS 2005. Is it possible that you are getting the wrong dlls
when you are running? Look for the debug output from the Visual Studio
Output window when you are running the program in the debugger. It
should look as below. Are you getting the right dlls? At this point, I
am attributing this problem to a configuration problem on your side.

-berk

'array.exe': Loaded 'C:\Users\david.cole\Dashboards\My
Tests\berk-email-20080912\build\debug\array.exe', Symbols loaded.
'array.exe': Loaded 'C:\Windows\System32\ntdll.dll', No symbols loaded.
'array.exe': Loaded 'C:\Windows\System32\kernel32.dll', No symbols loaded.
'array.exe': Loaded 'C:\Users\david.cole\Dashboards\My Tests\VTK
VTK-5-2-Win32-vs8-Debug\bin\debug\vtkCommon.dll', Symbols loaded.
'array.exe': Loaded 'C:\Windows\System32\user32.dll', No symbols loaded.
'array.exe': Loaded 'C:\Windows\System32\gdi32.dll', No symbols loaded.
'array.exe': Loaded 'C:\Windows\System32\advapi32.dll', No symbols loaded.
'array.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', No symbols loaded.
'array.exe': Loaded 'C:\Users\david.cole\Dashboards\My Tests\VTK
VTK-5-2-Win32-vs8-Debug\bin\debug\vtksys.dll', Symbols loaded.
'array.exe': Loaded
'C:\Windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.762_none_24c8a196583ff03b\msvcr80d.dll',
Symbols loaded.
'array.exe': Loaded 'C:\Windows\System32\msvcrt.dll', No symbols loaded.
'array.exe': Loaded
'C:\Windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.762_none_24c8a196583ff03b\msvcp80d.dll',
Symbols loaded.
'array.exe': Loaded 'C:\Windows\System32\wsock32.dll', No symbols loaded.
'array.exe': Loaded 'C:\Windows\System32\ws2_32.dll', No symbols loaded.
'array.exe': Loaded 'C:\Windows\System32\nsi.dll', No symbols loaded.
'array.exe': Loaded 'C:\Windows\System32\imm32.dll', No symbols loaded.
'array.exe': Loaded 'C:\Windows\System32\msctf.dll', No symbols loaded.
'array.exe': Loaded 'C:\Windows\System32\lpk.dll', No symbols loaded.
'array.exe': Loaded 'C:\Windows\System32\usp10.dll', No symbols loaded.
The program '[2308] array.exe: Native' has exited with code 0 (0x0).

On Mon, Sep 8, 2008 at 10:46 AM,  <cdp at mcleodusa.net> wrote:
> vtkusers at vtk.org
>
> 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:
>
> First-chance exception at 0x7c812a5b in myvtk.exe: Microsoft C++ exception:
> int at memory location 0x0012f780..
> HEAP[myvtk.exe]: Invalid Address specified to RtlValidateHeap( 01000000,
> 01153478 )
>
> 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).
>
> Any suggestions for getting SetArray() with save=0 to work?
>
> Thanks
>
> - cdp
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list