Stack overflow.
Repeat 9630 times:
--------------------------------
at SDL2.SDL+Runtime+CBool.ToBoolean(CBool)
at SDL2.SDL+Runtime+CBool.op_Implicit(CBool)
--------------------------------
at VectorVenture.App.Initialize()
at Katabasis.Game.DoInitialize()
at Katabasis.Game.Run()
at VectorVenture.Program.Main()
I can get around this by rewriting CBool.ToBoolean() like this:
public static bool ToBoolean(CBool value)
{
//Workaround
return value == CBool.FromBoolean(true);
//Original code:
//return Convert.ToBoolean(value);
}
But I'm assuming that's not identical to the C function.
For example this code:
Generates this error:
I can get around this by rewriting
CBool.ToBoolean()
like this:But I'm assuming that's not identical to the C function.