how to use vtk in a mfc dll

with vs2013, vtk8.1, I create a mfc dll with a mfc dialog, in this dialog, there is a static control which is parent of vtkrenderwindow.The dialog create as a modaless dialog,when the main exe load the dll,it will create the modaless dialog,or close the modaless dialog,when the main exe send close the modaless dialog command,vs2013 will show error : vtkRenderingCore-8.1.dll occur conflict ,and at the same time,vs2013 will go to vtkTextRender::SetInstance() function and point to the line vtkTextRenderer::Instance->Delete()

the question is very important, I wish someone can help me to solve the question.