This error has the following causes and solutions:
The problem occurs because the internal memory structure between an item running in the IDE and a compiled object is slightly different and not always compatible. In general, though, you shouldn't encounter a problem with this unless you are passing an instance of a UserControl (Me) to a host form or other component through a Property or Sub procedure.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).