<HTML dir=ltr><HEAD></HEAD>
<BODY>
<DIV id=idOWAReplyText8874 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>You were right, thank you! There were some VTK dll's in one of the systems directories, probably left there by a previous instalation of the program I'm working on.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Thank you for the tip!</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT> </DIV></DIV>
<DIV id=idSignature16619>
<DIV><FONT face=Arial color=#000000 size=2>Patrícia C. T. Gonçalves</FONT></DIV>
<DIV><FONT face=Arial size=2>e-mail: patgo@oniduo.pt</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De:</B> Andrew J. Dolgert<BR><B>Enviada:</B> qua 18-01-2006 20H22m<BR><B>Para:</B> Patricia Gonçalves; vtkusers@vtk.org<BR><B>Assunto:</B> RE: [vtkusers] Problem updating from vtk4.2.2 to vtk4.2.6<BR></FONT><BR></DIV>
<DIV><PRE style="WORD-WRAP: break-word">Hi - It looks like you compiled against one version of the dlls and are running with another. In other words, you still have the vtk4.2.2 dlls earlier in your path than the 4.2.6 dlls. The executable you made expects to find a different signature for InsertPoint than the old one. It is probably a small change in the signature that still allows your code to compile.
- Drew Dolgert
________________________________________
From: vtkusers-bounces+ajd27=cornell.edu@vtk.org [mailto:vtkusers-bounces+ajd27=cornell.edu@vtk.org] On Behalf Of Patricia Gonçalves
Sent: Wednesday, January 18, 2006 1:09 PM
To: vtkusers@vtk.org
Subject: [vtkusers] Problem updating from vtk4.2.2 to vtk4.2.6
Hello, all!
I have a C++ program that was created with VTK4.2.2 (I think!) and I'm updating it to VTK4.2.6. There are no compilling or debugging errors, but when it starts executing it shows me a message box saying
"The procedure entry point ?InsertPoint@vtkPoints@@QAEX_JNNN@Z could not be located in the dynamic link library vtkCommon.dll." (in debug mode)
"The procedure entry point ?InsertNextCell@vtkPolyData@@QAEHHHPA_J@Z could not be located in the dynamic link library vtkCommon.dll." (in release mode)
An example of InsertPoint and InsertNextCell used in the program is:
for (i = 1; i <= m_pixels1; i++) {
float *x1, *x2;
if (m_matching[i][1] != 0) {
x1 = pPoly1->GetPoint(i-1);
x2 = pPoly2->GetPoint(m_matching[i][1]-1);
if (sample == m_pathsample) {
vtkPoints *points = vtkPoints::New();
points->InsertPoint(0, x1);
points->InsertPoint(1, x2);
vtkPolyData *pLine = vtkPolyData::New();
pLine->Allocate(1, VTK_CELL_SIZE);
pLine->SetPoints(points);
int p[2];
p[0] = 0;
p[1] = 1;
pLine->InsertNextCell(VTK_LINE, 2, p);
}
}
}
All the include and library directories are correct, so I don't know where these errors are comming from!
Does anyone know how to solve this?
Thank you so much!
Patrícia C. T. Gonçalves
e-mail: patgo@oniduo.pt
</PRE></DIV></BODY></HTML>