<font size="2"><font face="verdana,sans-serif">You may be compiling the dll and the app using different compiler settings, such as threading model and/or debug mode. You should check that first. Also different compiler versions (VS2008 and VS2010) use different runtime libraries, so that might be mixed up too.<br>
</font></font><br><div class="gmail_quote">2011/11/1 Mehmet Yiğitsoy <span dir="ltr"><<a href="mailto:mehmet.yigitsoy@gmail.com">mehmet.yigitsoy@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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->readImage();</div><div>myDllObj->doProcessing();</div><div><br></div><div>myViewer->SetInput( mydllObj->getOutput()) // no problem</div>
<div><br></div><div><br></div><div>vtkImageData* result = NULL;</div><div><br></div><div>result = myViewer->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><font color="#888888">Mehmet<br>
</font></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>