<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=437380122-13112006>I'm trying to link 
the vtk library to a Windows Forms Application (with Common Language Runtime 
Support)&nbsp;directly (Visual Studio 2005 Professional Edition).&nbsp; I was 
able to build the application without error but was not able to start the 
application.&nbsp; It seems that the problem is due to the declaration of a 
static variable:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=437380122-13112006><FONT color=#0000ff 
size=2></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=437380122-13112006><FONT color=#0000ff 
size=2>static</FONT><FONT size=2> vtkDebugLeaksManager 
vtkDebugLeaksManagerInstance;</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=437380122-13112006><FONT 
size=2></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=437380122-13112006><FONT size=2>in the 
header file "vtkDebugLeaksManager.h".</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=437380122-13112006><FONT 
size=2></FONT></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=437380122-13112006><FONT size=2>This is 
not a vtk specified problem since it can be reproduced in the simplest 
application, as long as a static library in which a static global variable is 
declared.&nbsp; </FONT></SPAN></FONT><FONT face=Arial size=2><SPAN 
class=437380122-13112006><FONT size=2>I&nbsp;wonder if any one have seem the 
problem and know the cause of it and have a good 
solution.</DIV></FONT></SPAN></FONT>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2>Xiaofeng Zhao</FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2>VirtualScopics, LLC</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>350 Linden Oaks</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Rochester&nbsp;NY 14625</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>