Dear gurus,
I got it, thank you very much !
Regards,
Activecat
On Mon, Mar 3, 2014 at 9:11 PM, Martin Braun wrote:
> On 03/03/2014 12:37 PM, Marcus Müller wrote:
> > Hi Activecat,
> >
> > as Miklos wrote: Let your Constructor throw an exception.
> > For a little detail on that, refer to
> > ht
On 03/03/2014 12:37 PM, Marcus Müller wrote:
> Hi Activecat,
>
> as Miklos wrote: Let your Constructor throw an exception.
> For a little detail on that, refer to
> http://www.parashift.com/c++-faq-lite/ctors-can-throw.html .
> You can surround your block construction with a try{}catch-clause, and
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Activecat,
as Miklos wrote: Let your Constructor throw an exception.
For a little detail on that, refer to
http://www.parashift.com/c++-faq-lite/ctors-can-throw.html .
You can surround your block construction with a try{}catch-clause, and
handle yo
Dear Activecat,
Throw an exception. It will kill the application.
Miklos
On Mon, Mar 3, 2014 at 11:57 AM, Activecat wrote:
> Dear Marcus,
>
> Says, the constructor performed some basic checking on the constructor
> arguments, then had found some fatal error (says, division by zero) and
> decide
Dear Marcus,
Says, the constructor performed some basic checking on the constructor
arguments, then had found some fatal error (says, division by zero) and
decided to ban the flowgraph from being executed.
A workaround is to get the constructor to set a class variable to false,
says,
d_valid
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Activecat,
the constructor of a block must have been called before the block has
been connect()ed; so there's no way a flowgraph is already running
when your block's constructor is called.
Greetings,
Marcus
On 03.03.2014 06:53, Activecat wrote:
> De
Dear Sir,
Thank you very much.
What if, we want to stop the flow graph in the constructor of a block?
In work() we can just return -1.
But in constructor, what value should be returned, also -1 ?
Regards,
Activecat
On Sun, Feb 2, 2014 at 9:05 PM, Martin Braun wrote:
> On 01.02.2014 13:51, A
On 01.02.2014 13:51, Activecat wrote:
But the function stop() fails to work. The flow graph continue executing
infinitely...
Question:
How to stop the flow graph when this->d_complete == true ?
Return -1 (or WORK_DONE) in your work() function.
MB
Dear guru,
I am trying to create a block similar to Vector Source.
My objective is to stop the flow graph when the vector has sent out all its
elements.
(This is equivalent to "Repeat: No" in Vector Source)
But the function stop() fails to work. The flow graph continue executing
infinitely...
Qu