Hi frankie,
Maybe there is more involved in the crash?
I dropped your example into an existing program and it compiled fine - no crash,
see screen shot.
Maybe there is a particular optimization, compile mode, setting, or the recurring Add-In complication contributing?
John Z