<html>
<body>
Hi Andrew,<br><br>
Please update your ParaView 2.4 CVS repository and try building
again. I checked in changes this afternoon to that CVS branch that
should fix your build problems. Please let us know if you encounter
more problems.<br><br>
- Amy<br><br>
At 09:27 AM 3/14/2006, Amy Squillacote wrote:<br>
<blockquote type=cite class=cite cite="">Hi Andrew,<br><br>
I'm copying this thread back to the ParaView users list to keep other
people up-to-date on this issue. The error around line 1205 in
vtkClientServerStream.cxx has now been fixed both on the trunk and the
2.4 branch of the ParaView CVS repository. Another developer at
Kitware (who has a Visual Studio 8.0 compiler) is looking into the
problem in vtkInformationVectorKey. I'll let you know when it has
been fixed.<br><br>
- Amy<br><br>
At 10:33 PM 3/13/2006, Andrew Maclean wrote:<br>
<blockquote type=cite class=cite cite=""><font size=2 color="#000080">Hi
Amy,<br>
<br>
It still won’t run – an exception is raised at line 1205 in
vtkClientserver.cxx.<br>
<br>
Thanks for fixing line 239 (I prefer your solution to mine!), but in the
same bug report I also mentioned line1205 and, as I thought, it is not
fixed.<br>
Look at line 1205 – in vtkClientServerStream.cxx [ unsigned char* end =
&*this->Internal->Data.end(); ]<br>
This raises a “vector iterator not dereferencable” error. This is
actually correct behavior; the standard does not allow you to dereference
the end iterator. It just so happens that this compiler picks up this one
and no others do!<br>
<br>
<br>
My suggestions would be:<br>
<br>
1 ) Delete lines 1208 to 1211 and add the following at line 1202:<br>
</font><font size=2><b>if(this->Internal->Data.empty())<br>
{<br>
return 0;<br>
}<br>
</b></font><font size=2 color="#000080">This does the empty vector check
before anything happens.<br>
<br>
2) You can then (but I don’t like it – it’s a kludge which fools the
compiler) replace:<br>
<b>unsigned char *end = &*this->Internal->Data.end();<br>
</b>with<br>
</font><font size=2><b>unsigned char *end =
begin+this->Internal->Data.size()*sizeof(unsigned char);<br>
</b></font><font size=2 color="#000080"> <br>
and the parser seems to work.<br>
<br>
3) But then you then get a crash at line 138 in
vtkInformationVectorKey.cxx. Once again this line triggers a “vector
subscript out of range error”.<br>
<br>
… this is getting complex! I don’t know this code very well.
I am guessing that v is empty and that info is empty also. So something
is not being checked for being empty in ParaView.<br>
<br>
I suspect something in vtkSMProxy::UpdateVTKObjects(); line 875.<br>
<br>
Attached is the call stack for this crash.<br>
<br>
<br>
4) Could you also disable the deprecated warnings by adding this to the
CMakeLists.txt file?<br>
<br>
<br>
I hope all this helps.<br>
<br>
<br>
Regards<br>
<br>
Andrew<br>
<br>
<br>
<div align="center"><br>
</font></div>
<font face="Tahoma" size=2><b>From:</b> Amy Squillacote [
<a href="mailto:amy.squillacote@kitware.com" eudora="autourl">
mailto:amy.squillacote@kitware.com</a>] <br>
<b>Sent:</b> Tuesday, 14 March 2006 00:58<br>
<b>To:</b> a.maclean@cas.edu.au; paraview@paraview.org<br>
<b>Subject:</b> Re: [Paraview] Run Problem using Viaual Studio 8.0<br>
</font><font face="Times New Roman, Times"> <br>
Hi Andrew,<br><br>
A change was made recently (a week ago) to fix this problem both on the
trunk and the 2.4 branch of the ParaView CVS repository. How recent
is your checkout of ParaView? If it's older than a week ago, please
try updating the source tree and rebuilding. If your source tree is
up-to-date and you're still seeing the problem, can you tell where the
end iterator is being dereferenced and will you send us a stack
trace?<br><br>
- Amy<br><br>
At 01:57 AM 3/11/2006, Andrew Maclean wrote:<br><br>
Hi All,<br>
I have been able to compile ParaView OK using Visual
Studio 8.0 (it compiles with the usual warnings about {Microsoft}
deprecated functions) but it will not run. <br>
I have filed a bug report (2926) but I am curious to see if others are
able to run ParaView after compiling with Visual Studio 8.0. The crash
seems to be caused by dereferencing the end iterator.<br>
Am I the only one using Visual Studio 8.0 and ParaView?<br>
<br>
Andrew<br>
-- <br><br>
___________________________________________<br>
Andrew J. P. Maclean<br>
Centre for Autonomous Systems<br>
The Rose Street Building J04<br>
The University of Sydney 2006 NSW<br>
AUSTRALIA<br>
Ph: +61 2 9351 3283 <br>
Fax: +61 2 9351 7474<br>
URL: <a href="http://www.cas.edu.au/">http://www.cas.edu.au/</a><br>
___________________________________________<br>
<br>
_______________________________________________<br>
ParaView mailing list<br>
ParaView@paraview.org<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" eudora="autourl">
http://www.paraview.org/mailman/listinfo/paraview</a></font></blockquote>
_______________________________________________<br>
ParaView mailing list<br>
ParaView@paraview.org<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" eudora="autourl">
http://www.paraview.org/mailman/listinfo/paraview</a></blockquote></body>
</html>