<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi,<br><br>I wonder if anyone here has experienced this kind of problem and could give me some advice: I have to build the vtk 5.0.3 shared libraries with /MT instead of /MD on VC++ 8, then every time when my application start initializing vtkRenderWindow it crashes. I am able to find in the class vtkOpenGLRenderWindow:<br>vtkOpenGLRenderWindow::vtkOpenGLRenderWindow()<br>{<br> this->MultiSamples = vtkOpenGLRenderWindowGlobalMaximumNumberOfMultiSamples;<br> this->TextureResourceIds = vtkIdList::New();<br> if ( this->WindowName ) <br> delete [] this->WindowName; ########## crash here<br> this->WindowName = new char[strlen("Visualization Toolkit - OpenGL")+1];<br> strcpy( this->WindowName, "Visualization Toolkit - OpenGL" );<br>}<br><br>when it try to delete [] this->WindowName, there is memory corruption. I checked the content in the this->WindowName and it seems correct.<br><br>I also tested with the same vtk version with /MD build which is default setting, and it runs ok. The reason I need to have /MT because all the components in my app are built with /MT. The previous release of vtk, 4.2, doesn't have this problem.<br><br>Any discussion/advice will be highly appreciated!<br><br>Thank you,<br><br>Nick<br><br /><hr />Are you ready for Windows Live Messenger Beta 8.5 ? <a href='http://entertainment.sympatico.msn.ca/WindowsLiveMessenger' target='_new'>Get the latest for free today!</a></body>
</html>