Error Developing

I have a project and i get sometimes un error but after i fix that error, and it runs correctly, afterwards i get the same error again,

my solution in that problem is, i re run the project again. but this is a hassle in developing…

tnx to any one can help!