I don\'t get any error or exception.
Button in one Window:
private void button1_Click(object sender, EventArgs e) { ControlPort.Output(0x378, 0xf
You are not going to get an exception when you get this wrong, at most a blue screen. Pick one of:
The question is too poorly documented to help you beyond this.