On Friday, 20 August 2021 at 21:19:09 UTC, Ruby The Roobster wrote: > MessageBoxA(null, "Error", > cast(char)[])e.msg,MB_OK | ICON_ERROR); use std.string.toStringz to ensure that e.msg is 0-terminated.