Show / Hide Table of Contents

Class FTextCrash

Tests an RPC crash caused by empty FText's, as reported on the UDN here: https://udn.

Inheritance
System.Object
UObject
UnitTestBase
UnitTest
ProcessUnitTest
ClientUnitTest
FTextCrash
Inherited Members
ClientUnitTest.MinClient
UnitTest.TimeToPeakMem
UnitTest.LastExecutionTime
UnitTest.UnitTasks
UObject.TransientPackage
UObject.CastTo<T>(UObject)
UObject.CastTo(UObject, Type)
UObject.RemoveObject(UObject)
UObject.MakeObjectArrayField<T>(NativeArray*)
UObject.NotImplemented<T>()
UObject.Construct()
UObject.GetHashCode()
UObject.GetName()
UObject.ToString()
UObject.Name
UObject._None
UObject.None
UObject.ObjPointer
UObject.LoadObjectFromClass(Class, UObject, String, String, LoadFlags, PackageMap, Boolean)
UObject.LoadClass(Class, UObject, String, String, LoadFlags, PackageMap)
UObject.GetPropertyFor<T>(Name)
UObject.ExecuteUbergraph
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.NUTUnrealEngine4
Assembly: UE4DotNet.dll
Syntax
public class FTextCrash : ClientUnitTest
Remarks

unrealengine.com/questions/213120/using-empty-ftexts-within-rpcs.html

UDN Post: "Using Empty FTexts within RPCs" Hey, we're using FTexts within RPCs functions (server -> client in my specific case) to pass localized strings. That works fine until the point when the server sends an empty FText. In that case both the FText members SourceString and DisplayString are null on client side which lead to crashes whenever you use something like ToString which assumes those are valid.

Is this the intended behavior? I'm using FTextInspector::GetSourceString(text) to run checks on these replicated FTexts now to catch this case. FTexts that are not empty work just fine.

Thanks, Oliver

Properties

| Improve this Doc View Source

DefaultObject

Get UE4 Default Object for this Class

Declaration
public static FTextCrash DefaultObject { get; }
Property Value
Type Description
FTextCrash
| Improve this Doc View Source

StaticClass

Get UE4 Class

Declaration
public static Class StaticClass { get; }
Property Value
Type Description
Class

Methods

| Improve this Doc View Source

New(UObject, Name)

Spawn an object of this class

Declaration
public static FTextCrash New(UObject obj = null, Name name = default(Name))
Parameters
Type Name Description
UObject obj
Name name
Returns
Type Description
FTextCrash

Operators

| Improve this Doc View Source

Implicit(IntPtr to FTextCrash)

Convert from IntPtr to UObject

Declaration
public static implicit operator FTextCrash(IntPtr p)
Parameters
Type Name Description
System.IntPtr p
Returns
Type Description
FTextCrash
  • Improve this Doc
  • View Source
Back to top Generated by DocFX