On 07/17/2013 10:48 AM, Ron Sadlier wrote:

> I'm still having this problem, even after creating the simplest flow
> graph possible:
> 
> File source -> Throttle (val = 1) -> Terminal Sink.
> 
> Terminal sink has the following code:
> const unsigned char *inputByte = (const unsigned char *)input_items[0];
> std::cerr << (unsigned char)inputByte[0];
> consume_each(1);
> return 1;

What parent class are you deriving your "Terminal Sink" block from?
Normally, you don't call consume_each() in anything but a block derived
from gr::block directly. Otherwise, the other parent classes take care
of this for you, based on the return value of work().

-- 
Johnathan Corgan
Corgan Labs - SDR Training and Development Services
http://corganlabs.com

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to