Client crash on MValue use
TuK4z opened this issue · comments
Tuk1s commented
It was same issue with serverside Emit, but same issue still exist in clientside.
Create object with MValue
public class TestModel : IWritable
{
public int TestParam { get; set; } = 0;
public void OnWrite(IMValueWriter writer)
{
writer.BeginObject();
writer.Name("TestParam");
writer.Value(TestParam);
writer.EndObject();
}
}
Try Emit to WebView
TestModel a = new ();
a.TestParam = 1;
Scripts.WebView.WebViewObj?.Emit("Hud:Test", a);
Tuk1s commented
Rc9 not crashing anymore
Artem Dzhemesiuk commented
Fixed in alt:V version 15.0-dev592 and 15.0-rc9