Hi Daniele,<br><br>This error means that you are calling Write() or Update() on the vtkDataSetWriter without setting an input to it (i.e., without giving it a dataset to write).<br><br>- Amy<br><br><div class="gmail_quote">
On Mon, Feb 9, 2009 at 10:43 AM, Daniele Giunchi <span dir="ltr">&lt;<a href="mailto:d.giunchi@scsolutions.it">d.giunchi@scsolutions.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All,<br>I&#39;ve a problem with a test I performed with vtkDataSetWriter. I create a class that have two APIs for read or write as binary input string a vtkDataset (I use vtkDataSetReader and Writer inside it), and I made a first&nbsp; test in which I call this class, and set the input in order to return me the string.<br>

The problem is that if I create an instance of vtkDataSetWriter inside my class, it returns me an error :<br><br>vtkErrorMacro(&quot;Input for connection index &quot; &lt;&lt; index<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; &quot; on input port index &quot; &lt;&lt; port<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; &quot; for algorithm &quot; &lt;&lt; this-&gt;Algorithm-&gt;GetClassName()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; &quot;(&quot; &lt;&lt; this-&gt;Algorithm &lt;&lt; &quot;) is NULL, but a &quot; <br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; info-&gt;Get(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(), 0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; &quot; is required.&quot;);<br><br>that is in vtkDemandDrivenPipeline.cxx<br>If the vtkDataSetWriter is created inside my test class, it&#39;s all ok. I don&#39;t understand why there is a different behaviour.<br>

I debug the code and I discover that the problem is here:<br><br>vtkObjectBase* vtkInformation::GetAsObjectBase(vtkInformationKey* key)<br><br>In this function, in the erroneous case the key array and values array are different from the correct case, and also the hash index<br>

is wrong I suppose, because in the correct case I&#39;ve always the same entry (10) that correspond to a polydata, while in the second<br>case I&#39;ve 19, that doesn&#39;t correspond to anything.<br><br>The version I use is vtk 5.2.1.<br>

<br>Any advice?<br>Thank you very much<br>best regards,<br><br>Daniele<br><br><br clear="all">----------------------------------------<br>Dott. Daniele Giunchi<br>Software Developer<br>BioComputing Competence Centre<br>Super Computing Solutions s.r.l. , CINECA<br>

Via Magnanelli 6/3, 40033 Casalecchio di Reno BO, Italy<br><a href="http://tinyurl.com/z24zv" target="_blank">http://tinyurl.com/z24zv</a><br><a href="http://www.scsolutions.it" target="_blank">http://www.scsolutions.it</a><br>
mailto:<a href="mailto:d.giunchi@scsolutions.it" target="_blank">d.giunchi@scsolutions.it</a><br>
-------------------------------------------<br><br>The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.<br>


<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>