[vtkusers] memory leak when use with MFC
Chen Fu
novalet at yahoo.com.cn
Wed Apr 9 02:25:56 EDT 2003
Hi!
I compile the sample of
examples/gui/win32/vtkMFC/vtkMDI and vtkSDI. But when
i close the application, there were hundreds of memory
leak.
Then i simplify the usage of vtk, to only
this->ren = vtkRenderer::New();
this->ren->Delete();
but the leaks still happen.
Get rid of all vtk part, then there is not any leak.
So i believe if the dll of vtk loaded, there will be
leaks.
At last i turn MFC to link as a static lib. The leaks
go away.
I am not a master in compiler.
Does it mean vtk can't cooperate with MFC dll? or
something else i must do to let them cooperate
together?
=====
Remote Scensing Satellite Ground Station
Chinese Academy of Science
_________________________________________________________
Do You Yahoo!?
雅虎通网络KTV, 随时随地免费卡拉OK~~
http://rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com//chat/index.html
More information about the vtkusers
mailing list