Hi,<div><br></div><div>I have a dll where I do some processing and I do visualization in my application. A function in dll returns a vtkImageData pointer and I try to visualize it using vtkImageViewer2. However, it seems that vtkImageViewer2 does not accept the vtkImageData pointer returned by the dll function. Following is a scenario where this problem occurs;</div>

<div><br></div><div>MyDllClass* myDllObj = new MyDllClass();</div><div>myDllObj-&gt;readImage();</div><div>myDllObj-&gt;doProcessing();</div><div><br></div><div>myViewer-&gt;SetInput( mydllObj-&gt;getOutput()) // no problem</div>

<div><br></div><div><br></div><div>vtkImageData* result  = NULL;</div><div><br></div><div>result = myViewer-&gt;GetInput();</div><div><br></div><div>// result is still NULL</div><div><br></div><div><br></div><div>It works fine if I include this function in my application, i.e. if I allocate the memory for this object within my application. </div>

<div><br></div><div>I would be happy if someone could point out what the problem might be.</div><div><br></div><div>Thanks,</div><div>-- <br>Mehmet<br>
</div>