FinishTask() funktion for uninitialized Tasks -> Bug or feature? [message #20145] |
Wed, 18 January 2017 15:29 |
Dominik Steinschaden
Messages: 28 Registered: April 2015
|
continuous participant |
From: *smi.oeaw.ac.at
|
|
Hello,
Currently I'm programming a few new Classes/ Tasks for PandaRoot, and realized the following behavior.
In my "Init()" function I implemented some checks and if they fail a "kERROR" is returned. (mainly if the needed input Branches are not found)
As expected for this "uninitialized" Tasks the "Task::Exec()" is not processes subsequently.
BUT the Task::FinishTask() function is still called, which leads to a segmentation violation in my case, although this is exactly what I want to avoid by doing this checks during the initialization.
Is this working as expected?
regards Dominik
|
|
|