Here is the output:<div><br></div><div><div>'sift.exe': Loaded 'C:\My RSCH WORK\Tumor Shrinkage\SIFT\debug\sift.exe', Symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.</div>
<div>'sift.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\Program Files\ParaView 3.2.1\bin\vtkIO.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\Program Files\ParaView 3.2.1\bin\vtkFiltering.dll', No symbols loaded.</div>
<div>'sift.exe': Loaded 'C:\Program Files\ParaView 3.2.1\bin\vtkCommon.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\Program Files\ParaView 3.2.1\bin\vtksys.dll', No symbols loaded.</div>
<div>'sift.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', No symbols loaded.</div>
<div>'sift.exe': Loaded 'C:\WINDOWS\system32\msvcr71.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\msvcp71.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.</div>
<div>'sift.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\Program Files\ParaView 3.2.1\bin\vtkDICOMParser.dll', No symbols loaded.</div><div>
'sift.exe': Loaded 'C:\Program Files\ParaView 3.2.1\bin\vtkNetCDF.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\Program Files\ParaView 3.2.1\bin\vtkmetaio.dll', No symbols loaded.</div>
<div>'sift.exe': Loaded 'C:\Program Files\ParaView 3.2.1\bin\vtkzlib.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', No symbols loaded.</div>
<div>'sift.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\Program Files\ParaView 3.2.1\bin\vtkpng.dll', No symbols loaded.</div>
<div>'sift.exe': Loaded 'C:\Program Files\ParaView 3.2.1\bin\vtkjpeg.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\Program Files\ParaView 3.2.1\bin\vtktiff.dll', No symbols loaded.</div>
<div>'sift.exe': Loaded 'C:\Program Files\ParaView 3.2.1\bin\vtkexpat.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\avifil32.dll', No symbols loaded.</div><div>
'sift.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\msacm32.dll', No symbols loaded.</div>
<div>'sift.exe': Loaded 'C:\WINDOWS\system32\msvfw32.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', No symbols loaded.</div>
<div>'sift.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\msvcp70d.dll', Symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\msvcr70d.dll', Symbols loaded.</div>
<div>'sift.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\lpk.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\usp10.dll', No symbols loaded.</div>
<div>'sift.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll', No symbols loaded.</div><div>'sift.exe': Loaded 'C:\WINDOWS\system32\apphelp.dll', No symbols loaded.</div>
<div>'sift.exe': Loaded 'C:\WINDOWS\system32\version.dll', No symbols loaded.</div><div>The thread 'Win32 Thread' (0x12b0) has exited with code 0 (0x0).</div><div>First-chance exception at 0x00f75c30 in sift.exe: 0xC0000005: Access violation reading location 0x0000004c.</div>
<div>Unhandled exception at 0x00f75c30 in sift.exe: 0xC0000005: Access violation reading location 0x0000004c.</div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Thu, Oct 23, 2008 at 4:46 PM, David Cole <span dir="ltr"><<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Show the output window in Visual Studio by choosing:<div>> the View menu</div><div>> the "Other Windows" submenu</div>
<div>> the "Output" menu item</div><div><br></div><div>(or using the "Ctrl+Alt+O" shortcut key)</div><div><div></div><div class="Wj3C7c">
<div><br><br><div class="gmail_quote">On Thu, Oct 23, 2008 at 5:42 PM, David Cole <span dir="ltr"><<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Look at the output window after running your program in the debugger.<div><br></div><div>Copy the text from that output window and paste it into your next reply.</div><div><div></div><div><div><br></div><div>
<br><br><div class="gmail_quote">On Thu, Oct 23, 2008 at 4:54 PM, Ming Chao <span dir="ltr"><<a href="mailto:mingchao2005@gmail.com" target="_blank">mingchao2005@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<div><br></div><div>Thanks for looking into this. <br><br><div class="gmail_quote"><div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Do you have multiple versions of VTK dll's in your PATH?</blockquote>
<div><br></div></div><div>I do have another vtk version (5.0.4) after I had this problem with <a href="http://5.2.0." target="_blank">5.2.0.</a> But I believe 5.0.4 was not included. I am not sure what you mean by PATH. Anyhow, I checked Path in the System vairables. I did not put any version of VTK in it. If there is other PATH, please let me how to check.</div>
<div>
<div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>What is the output in the Visual Studio output window when you run your program in the debugger? Does it really indicate that VTK 5.2 dlls are getting loaded?</div>
</blockquote><div><br></div></div><div>When I run the program in debugger mode, it immediately brought me to the crtexe.c file. How do I find out whether VTK 5.3 dlls are loaded or not? I have to say that I am not quite good at Visual Studio debugging stuff.</div>
<div><br></div><font color="#888888"><div>Ming</div></font><div><div></div><div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div></div>
<div><br><br><div class="gmail_quote"><div><div></div><div>On Thu, Oct 23, 2008 at 4:25 PM, Ming Chao <span dir="ltr"><<a href="mailto:mingchao2005@gmail.com" target="_blank">mingchao2005@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
Hi,<div><br></div><div>A couple of weeks ago I posted a problem with the GetNumberOfPoints() when doing the following:</div><div><br></div><div> <span style="white-space:pre"> </span>vtkPolyDataReader *contourReader = vtkPolyDataReader::New();</div>
<div><span style="white-space:pre"> </span>contourReader->SetFileName( "Test.vtk" ); // test contour file in vtk format</div><div><span style="white-space:pre"> </span>contourReader->Update();</div>
<div><br></div><div><span style="white-space:pre"> </span>vtkPolyData *poly = vtkPolyData::New();</div><div><span style="white-space:pre"> </span>poly->DeepCopy( contourReader->GetOutput() );</div>
<div><br></div><div><span style="white-space:pre"> </span>vtkPoints *points = poly->GetPoints();</div><div><span style="white-space:pre"> </span>int NumberOfTotalPoints = points->GetNumberOfPoints(); <======= here the problem occurs!!!!</div>
<div><br></div><div>I am using the latest version 5.2.0 and visual studio 7. The compiling and linking are fine, but when running the executable there was an error. I tried to debug, and found that the break point in file crtexe.c at</div>
<div><br></div><div><div>#ifdef WPRFLAG</div><div> __winitenv = envp;</div><div> mainret = wmain(argc, argv, envp);</div><div>#else /* WPRFLAG */</div><div> __initenv = envp;</div><div> mainret = main(argc, argv, envp); <================= break point !!!</div>
<div>#endif /* WPRFLAG */</div><div><br></div><div>#endif /* _WINMAIN_ */</div><div><br></div><div> if ( !managedapp )</div><div> exit(mainret);</div><div><br></div><div> _cexit();</div>
<div><br></div><div> }</div></div><div><br></div><div>When I was running the same code using older version vtk (before 5.0 release), everything was fine. Is there any change in vtkPoints? </div><div><br></div><div>
I need to use this function urgently. I could not fine a workaround. Thanks again for any suggestion and help.</div><div><br></div><font color="#888888"><div>Ming</div><div><br></div>
</font><br></div></div>_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>