FabianTerhorst/coreclr-module

Client crash on MValue use

Closed this issue · 2 comments

TuK4z 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);
TuK4z commented

Rc9 not crashing anymore

zziger commented

Fixed in alt:V version 15.0-dev592 and 15.0-rc9