Build / Debug problems

  • Thread starter Thread starter Stan
  • Start date Start date
S

Stan

I started a windows solution with eight forms linked
together by buttons using the following code that was
typical of linking Form1 to Form2:

DIM Form2 As New Form
Form2.Show

Everything went well for a couple of days and then I
modified one form and tried to rebuild the solution and
got the following error reports:

** Could not copy temporary files to the output directory
** The file filename.vb cannot be copied to the run
directory.The file may be in use elsewhere.

Turning off the computer is the only way to get a
rebuild. Any subsequent rebuilds fail the same way.

Since that time I have wiped the solutions from the
computer and began a test solution.

This time I created two forms linked as above.
Perfomed a rebuild and debug
Form1 is Ok
Form2 has been replaced by a blank form that I did not
create but is not found in the solution explorer,
however, Form2 is still there. On the tabs Form2 can be
seen in design mode and can be worked on.

I am leaning toward a virus but my virus checker is
uptodate and has not reported any findings. Any ideas
would be appreciated greatly.

Stan ([email protected])
 
Hi Stan
This is usually caused by your application failing to close all forms. So
the next time you try to compile it, the exe is still in use.

Check for this with the task manager. - Your exe will still be on the
process list if this is going on. Killing it will restore normal
compilation.

In the C# IDE, <Shift F5> will kill the reluctant process. Not sure about
VB.

Regards

Ron
 
Back
Top