[vtkusers] About vtkPoints::InsertPoint()

Jothybasu Selvaraj jothybasu at gmail.com
Thu Apr 26 10:26:20 EDT 2012


I am using XP and vtk 5.10 RC2 and it works fine for me!

As someone mentioned you should check your dlls. Are you usng release DLLs
and are you also building in release mode?

Jothy

On Thu, Apr 26, 2012 at 3:23 PM, Wenlong <scc.wwl at gmail.com> wrote:

> Hi, David & Jothy
>
> Thank you very much for your reply.
>
> Yes, I use x[2] = 3. That was a mistyping.
>
> I call vtkPoints->InsertPoint(1, x) without SetNumberOfComponents() in my
> previous application with Windows Vista & Visual Studio 2008 on another PC.
> It works. But as I call it in my current application with Windows 7 &
> Visual
> Studio 2008, the error pops up. I'm not sure if this is caused by different
> OS.
>
> A demo code #1 is like this
>
> {
>    vtkPoints* points = vtkPoints::New();
>    float x[3];
>    x[0] = 0;
>    x[1] = 1;
>    x[2] = 2;
>    points->InsertPoint(0, x);          //where the access conflict happens
> }
>
> Another demo code #2 is
>
> {
>    vtkGenericDataObjectReader* reader = vtkGenericDataObjectReader::New();
>    reader->SetFileName("C:\\Users\\Wenlong\\Desktop\\surface.vtk");
> //where the access conflict happens
>    reader->OpenVTKFile();
>    reader->Update();
> }
>
> The same access conflict happens when the vtkGenericDataObjectReader
> instance try to get to the .vtk file. I check the file and it does exist
> and
> it is not occupied by any other program.
>
> I don't understand why this is happening cause I set the including
> directories and libraries as necessary.
>
> Thank you very much for your kindly help.
>
> Best regards
> Wenlong
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/About-vtkPoints-InsertPoint-tp5667490p5667760.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120426/e9bf1d14/attachment.htm>


More information about the vtkusers mailing list