UBTTask_BlackboardBase ExecuteTask does not get fired in 4.7

I have created a task in C++ which extends from UBTTask_BlackboardBase.

// TaskTest.h
class BTTask_Tesing UBTTask_Test : public UBTTask_BlackboardBase
	virtual EBTNodeResult::Type ExecuteTask(UBehaviorTreeComponent* OwnerComp, uint8* NodeMemory) override;

// TaskTest.cpp
EBTNodeResult::Type UTaskTest::ExecuteTask(UBehaviorTreeComponent *OwnerComp, uint8 *NodeMemory)
    GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("tree. UBTTask_FindTree"));
    return EBTNodeResult::Succeeded;

I added this task under a sequence in my behavior tree. It works as expected in 4.6. However when I try it with Unreal Engine 4.7 (Preview 4) the task does not execute.

Is it a bug in 4.7 ? Is there another way to create a task in C++ with version 4.7 ?

Thanks in advance.

Finally I figured out. In 4.7 OwnerComp parameter must be a reference.

virtual EBTNodeResult::Type ExecuteTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) override;


I am having this compilation error as stated in the following post. Do you have a clue by any chance?

Thank you. It’s helpful.