I found that the problem is that I had a table in the Dataenvironment. When I removed the table from the Dataenvironment the problem went away. It is still some sort of a bug. I did not have anyother code in a form. I was only calling it from the development environment.