<div dir="ltr">OK.... so the problem looks like the example you are trying to run is using a data file that does not exist in the expected location on your machine. Do you have a VTKData folder next to your VTK folder?<br>
<br>You can download the VTKData folder from the VTK download page:<br><a href="http://www.vtk.org/get-software.php">http://www.vtk.org/get-software.php</a><br><br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Fri, Sep 5, 2008 at 12:05 PM, Carl Trapani <span dir="ltr">&lt;<a href="mailto:carl@skytopsoftware.com">carl@skytopsoftware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi David,<br>
<br>
Here is command line error:<br>
<br>
-------------------<br>
vtkpython C:\projects\vtk\vtk-5.2\VTK\Examples\GUI\Python\ImagePlaneWidget.py<div class="Ih2E3d"><br>
alloc: invalid block: 10089F90: 1 0<br>
<br>
This application has requested the Runtime to terminate it in an unusual way.<br>
Please contact the application&#39;s support team for more information.<br></div>
-------------------<br>
<br>
I see part of an error in a vtkOutputWindow:<br>
<br>
-------------------<br>
ERROR: In ..\..\VTK\IO\vtkVolume16Reader.cxx, line 355<br>
vtkVolume16Reader [01D3FDB8]: Can&#39;t find file: ../../../../VTKData/Data/hea<br>
-------------------<br>
<br>
I can&#39;t see anymore of the file name, but it looks like it can&#39;t find the headsq data because it has one too many .. .<br>
<br>
Here is my directory structure:<br>
<br>
C:\projects\vtk\vtk-5.2 &nbsp;&lt;--containing directory for 5.2<br>
C:\projects\vtk\vtk-5.2\VTK &lt;-- source<br>
C:\projects\vtk\vtk-5.2\VTKBuildVC9 &nbsp;&lt;-- build<br>
C:\projects\vtk\vtk-5.2\VTKBuildVC9\bin\Debug &nbsp;&lt;-- vtkPython.exe<br>
C:\projects\vtk\vtk-5.2\VTKData &nbsp;&lt;-- data<br>
C:\projects\vtk\vtk-5.2\VTKData\Data\headsq &nbsp;&lt;-- headsq data<br>
<br>
I did NOT build the examples ... I&#39;m trying to run them as they are in the source dir tree because the build was taking soooo long. Perhaps that is my problem? I will try building examples and running them and let you know if I get same errors ... but that will take at least an hour++.<div class="Ih2E3d">
<br>
<br>
Thanks!!<br>
Carl<br>
<br>
David Cole wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
In your build tree, there should be a &quot;vtkpython.exe&quot; -- can you try it with that (instead of python.exe) and see if you get the same thing...?<br>
<br>
<br>
<br></div><div><div></div><div class="Wj3C7c">
On Fri, Sep 5, 2008 at 10:58 AM, Carl Trapani &lt;<a href="mailto:carl@skytopsoftware.com" target="_blank">carl@skytopsoftware.com</a> &lt;mailto:<a href="mailto:carl@skytopsoftware.com" target="_blank">carl@skytopsoftware.com</a>&gt;&gt; wrote:<br>

<br>
 &nbsp; &nbsp;Hi David,<br>
<br>
 &nbsp; &nbsp;Here&#39;s what I&#39;ve done:<br>
<br>
 &nbsp; &nbsp;1) Started Visual Studio 2008 and opened the VTK.sln solution.<br>
 &nbsp; &nbsp;2) Set it to stop on access violation exceptions (Win32 Exceptions<br>
 &nbsp; &nbsp;- c0000005 Access violation)<br>
 &nbsp; &nbsp;3) Opened a command prompt, cd&#39;d to dir where ImagePlaneWidget.py<br>
 &nbsp; &nbsp;is located and ran<br>
<br>
 &nbsp; &nbsp;python ImagePlaneWidget.py<br>
<br>
 &nbsp; &nbsp;4) Got the following at command prompt:<br>
<br>
 &nbsp; &nbsp;alloc: invalid block: 10089F90: 1 0<br>
<br>
 &nbsp; &nbsp;This application has requested the Runtime to terminate it in an<br>
 &nbsp; &nbsp;unusual way.<br>
 &nbsp; &nbsp;Please contact the application&#39;s support team for more information.<br>
<br>
 &nbsp; &nbsp;5) Then, a dialog prompted me to &quot;Check online ..., Close, or<br>
 &nbsp; &nbsp;Debug&quot;. I chose Debug and selected the already open instance of<br>
 &nbsp; &nbsp;Visual Studio.<br>
<br>
 &nbsp; &nbsp;6) Then, VS displays this dialog:<br>
<br>
 &nbsp; &nbsp;First-chance exception at 0x0408579d in python.exe: 0xC0000005:<br>
 &nbsp; &nbsp;Access violation reading location 0x000001b4.<br>
<br>
 &nbsp; &nbsp;Break, Continue, Ignore, Pray, Start Drinking ...<br>
<br>
 &nbsp; &nbsp;I selected Break. Then, I get a dialog warning that VS doesn&#39;t<br>
 &nbsp; &nbsp;have the symbols for Tk85.dll - but I can&#39;t subsequently get that<br>
 &nbsp; &nbsp;warning when I re-run, so I&#39;m not sure of the detail. Anyway ...<br>
 &nbsp; &nbsp;here is the Call Stack:<br>
<br>
 &nbsp; &nbsp;&gt; &nbsp; &nbsp;tk85.dll!03f3579d() &nbsp; &nbsp; &nbsp; &nbsp;[Frames below may be incorrect<br>
 &nbsp; &nbsp;and/or missing, no symbols loaded for tk85.dll] &nbsp; &nbsp; &nbsp; &nbsp; tk85.dll!03ef4654() &nbsp; &nbsp; &nbsp; &nbsp;tk85.dll!03f9d6f7() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ntdll.dll!76e6a604() &nbsp; &nbsp; &nbsp; &nbsp;ntdll.dll!76e3a303() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ntdll.dll!76e5fea0() &nbsp; &nbsp; &nbsp; &nbsp;kernel32.dll!7575596c() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kernel32.dll!756fd873() &nbsp; &nbsp; &nbsp; &nbsp;msvcrt.dll!768b2070() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msvcrt.dll!768b1d5e() &nbsp; &nbsp; &nbsp; &nbsp;ntdll.dll!76e5fea0() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ntdll.dll!76e62447() &nbsp; &nbsp; &nbsp; &nbsp;ntdll.dll!76e6214c() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ntdll.dll!76e618c3() &nbsp; &nbsp; &nbsp; &nbsp;kernel32.dll!75707a7e() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msvcr71.dll!7c34218a() &nbsp; &nbsp; &nbsp; &nbsp;ntdll.dll!76e618c3() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kernel32.dll!75707a7e() &nbsp; &nbsp; &nbsp; &nbsp;msvcr71.dll!7c34218a() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; python25.dll!1e062ff6() &nbsp; &nbsp; &nbsp; &nbsp;python25.dll!1e0266dc() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; python25.dll!1e039eaa() &nbsp; &nbsp; &nbsp; &nbsp;python25.dll!1e041862() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; python25.dll!1e0266dc() &nbsp; &nbsp; &nbsp; &nbsp;python25.dll!1e03a32d() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; python25.dll!1e03b2e2() &nbsp; &nbsp; &nbsp; &nbsp;python25.dll!1e03d296() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; python25.dll!1e03e1bd() &nbsp; &nbsp; &nbsp; &nbsp;python25.dll!1e03e222() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; python25.dll!1e0abbda() &nbsp; &nbsp; &nbsp; &nbsp;python25.dll!1e0acb56() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; python25.dll!1e0ad22d() &nbsp; &nbsp; &nbsp; &nbsp;msvcr71.dll!7c369c33() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; python25.dll!1e08add6() &nbsp; &nbsp; &nbsp; &nbsp;python.exe!1d0011a5() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kernel32.dll!75703833() &nbsp; &nbsp; &nbsp; &nbsp;ntdll.dll!76e3a9bd() &nbsp; &nbsp; &nbsp; &nbsp;Let me know if I can help further.<br>

 &nbsp; &nbsp;Thanks!<br>
 &nbsp; &nbsp;Carl<br>
<br>
<br>
<br>
 &nbsp; &nbsp;David Cole wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;It&#39;s likely a bug.<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Can you set your Visual Studio to stop on access violation<br>
 &nbsp; &nbsp; &nbsp; &nbsp;exceptions, and the look at the call stack window and<br>
 &nbsp; &nbsp; &nbsp; &nbsp;copy/paste/send along the call stack when it crashes...?<br>
 &nbsp; &nbsp; &nbsp; &nbsp;(See the &quot;Debug &gt; Exceptions&quot; menu item to stop on access<br>
 &nbsp; &nbsp; &nbsp; &nbsp;violations and the &quot;Debug &gt; Windows &gt; Call Stack&quot; menu item to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;show the call stack... then select all the text in the call<br>
 &nbsp; &nbsp; &nbsp; &nbsp;stack window and Ctrl+C to copy.)<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Thanks,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;David<br>
<br>
<br>
<br>
</div></div></blockquote><font color="#888888">
<br>
<br>
-- <br>
Carl Trapani (<a href="mailto:carl@skytopsoftware.com" target="_blank">carl@skytopsoftware.com</a>)<br>
Skytop Software (<a href="http://www.skytopsoftware.com" target="_blank">http://www.skytopsoftware.com</a>)<br>
32 Washington St., Suite 222<br>
Camden ME 04843<br>
(207) 975-1685<br>
<br>
</font></blockquote></div><br></div>