<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I used vtkImageReader to read raw data in my application. I tried to link my program to compiled static library. However, it always gave me "Access violation" error message at SetOrigin(0.0,0.0,0.0). I tried to link to dll library, then every thing is O.K.</DIV>
<DIV> </DIV>
<DIV>I found in vtkImageReader the Origin is set by Set/Get Macro and Origin is a protected member varible. I change it to public then my program can link to the static library.</DIV>
<DIV> </DIV>
<DIV>Can anyone explain it to me why?</DIV>
<DIV> </DIV>
<DIV> Luke </DIV>
<DIV> </DIV>
<DIV> </DIV><p><font face=arial size=-1>Do you Yahoo!?<br>
<a href="http://taxes.yahoo.com/filing.html"><b>Yahoo! Finance Tax Center</a></b> - File online. File on time.