Error Code 0

When I compile I get the following error:

        Error: (0) Could not create output file 'XXXXXXXX.XXX'

After rebooting the error doesn't occur until I compile a second time.

I also can't delete or rename the file. This happens even if I close the
main form from the system menu. Anyone know what's goin on???

Thanks for all your help