I get Error 5 (Invalid Proc Call or Argument) when running an exe file, but not when am running the debug version. Happens on a MSGBOX statement(no problem when that lines commented out). Occurs in a TextBox_LostFocus of an MDI child. The same line works in other parts of the same program. Would be grateful for any help.