Hi guys basically what I’m trying to achieve is to create recursive function for my code everything going fine until this function is running but when my function stops Executing unreal crushes and gives me this error :
LogWindows: Windows GetLastError: The operation completed successfully.
have anyone had same problem? I’ve tried to google this error but couldn’t find any real solution.
PS. my function looks like this
void UShowAnswers::OnDelayTimerHandle()
{
GetWorld()->GetTimerManager().ClearTimer(DelayTimerHandle);
UWidget* UAnswerText = CurrentWidget->GetWidgetFromName("AnswerText");
UEditableText* UEAnswerText = Cast<UEditableText>(UAnswerText);
UEAnswerText->SetText(FAnswerPropertiesStruct[j].FTanswer);
j++;
if (j < FAnswerPropertiesStruct.Num()) {
UE_LOG(LogTemp, Warning, TEXT("SUCCEED Struct.Length : %d, Index.Length : %d"), FAnswerPropertiesStruct.Num(), j);
GetWorld()->GetTimerManager().SetTimer(DelayTimerHandle, this, &UShowAnswers::OnDelayTimerHandle, FAnswerPropertiesStruct[j].DelayTime, false);
}
else {
UE_LOG(LogTemp, Warning, TEXT("FAILED Struct.Length : %d, Index.Length : %d"), FAnswerPropertiesStruct.Num(), j);
TimeToEnd = true;
}
}