Why this code part crashed game when try to use? (use win 10 OS,4.26+ ue)
.h
UFUNCTION(BlueprintCallable, Category = "exeFnc")
static bool runedExe(FString exeName);
.cpp
bool UMyBlueprintFunctionLibrary::runedExe(FString exeName)
{
const TCHAR* exeNameC= *exeName;
return FGenericPlatformProcess::IsApplicationRunning(exeNameC);
}
error when try to use:
---------------------------
The UE4-proverkaCpp Editor has crashed and will close
---------------------------
Fatal error: [File:D:/UE4/UnrealEngine-4.26/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformProcess.cpp] [Line: 285]
FGenericPlatformProcess::IsApplicationRunning not implemented on this platform
---------------------------
ОК
---------------------------
want to check running mysql server to start or not him
check from pid chash too
…
hmmmm…
in engine source .cpp
bool FGenericPlatformProcess::IsApplicationRunning( uint32 ProcessId )
{
UE_LOG(LogHAL, Fatal, TEXT("FGenericPlatformProcess::IsApplicationRunning not implemented on this platform"));
return false;
}
bool FGenericPlatformProcess::IsApplicationRunning( const TCHAR* ProcName )
{
UE_LOG(LogHAL, Fatal, TEXT("FGenericPlatformProcess::IsApplicationRunning not implemented on this platform"));
return false;
}
ok.