Issues with compile

  • Thread starter Thread starter Chris Calzaretta
  • Start date Start date
C

Chris Calzaretta

Ok
Using windows form with about 6 users controls

Windows Form <--
ucMain <----
ucControl1 <--ucToolbar
ucControl2 <--ucToolBar
ucControl3<--ucToolBar
You get the idea there with what I am doing
Now if i have a form open upon opening the IDE i will get an error

Unable to write to output file 'C:\Documents and Settings\ChrisCalzaretta\My
Documents\Visual Studio
Projects\wsProjectTracker\ucScreenProject\obj\Debug\ucScreenProject.dll':
The process cannot access the file because it is being used by another
process.

Cant write over the .dll because it is in use..

To fix my issue I half to close all windows and reopen project and
recompile.

Now this is fine if I was not using source safe over a VPN.
But having to reopen the project over the VPN takes about 10 mins which is a
big waste of time..

ANybody know any fixes to this problem..

If anybody can even just tell me how to stop the.dll from being in use that
would be great too



Thanks everybody

Chris
 
If any of your user controls have design time access then the DLL will
be in use when the Form Designer is open. That's a fact of life.

The only suggestion I can make would be if you are creating the controls
yourself, then add the project that creates the DLL you are referencing
to the solution for your main project. Add a project reference in the
main project to the custom controls project, and it should compile the
code in memory and provide the functionality you require without
actually using the DLL.

Hopefully this helps...

Brian Swanson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top