[Clam-devel] Hello world

David García Garzón dgarcia at iua.upf.edu
Thu Apr 12 05:06:28 PDT 2007


On Dijous 12 Abril 2007, David García Garzón wrote:
> On Dijous 12 Abril 2007, Xavier Amatriain wrote:
> > David García Garzón wrote:
> > > Until...?
> >
> > How about until all the generators in the network (in this case only
> > one, the file player) are not producing
> > anything (i.e. empty outports)? Maybe generators like this could have an
> > output control that was fired
> > whenever the Processing is "done".
>
> Yes it is a good solution. But do we use the Do return value or do we add
> interface to the Processing. And besides that, we need a (say)
> WaitUntilDone method on the network.
>
> But now i am on trickier issues. I send the current status of the
> HelloWorld. To have it at work, and for you to take a look at it. I don't
> understand why it is complaining about configuring the reader.


Ok, i found the bug: Wrong processing name + Network not complaining about bad 
name -> accessing to an unexisting processing memory. Now the network fails 
an asserts (proper name is a programming precondition, not an error condition 
to check afterwards).

Taking a look at the example it is still too complex for my taste. And of 
course, substituting the 'sleep' by a 'network.WaitUntilDone()' would be a 
lot better.


-- 
David García Garzón
(Work) dgarcia at iua dot upf anotherdot es
(Home) vokimon at telefonica adot net
http://www.iua.upf.edu/~dgarcia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cxx
Type: text/x-c++src
Size: 903 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070412/4039f586/attachment-0005.cxx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SConstruct
Type: application/x-python
Size: 5633 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070412/4039f586/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070412/4039f586/attachment-0001.sig>


More information about the clam-devel mailing list