Groups | Blog | Home
all groups > visual studio .net general > january 2007 >

visual studio .net general : corrupted dlls when stopping a build


gtsml.owevwr NO[at]SPAM googlemail.com
1/12/2007 7:14:20 AM
Hi,

I often have to stop builds of a dll before completion and sometimes
that leaves the DLLs in a bad state:
- it is obviously "half compiled" and therefore corrupted
- but the timestamp is correct so it doesn't recompile when a new build
is done

Then I have to use depends.exe to find the corrupted dll, delete it and
recompile.
That is a bit cumbersome really...

Is there a way to make sure that a corrupted dlll due to build stop
always recompile afterward?

Thanks
nathan NO[at]SPAM visi.com
1/12/2007 7:08:15 PM
In article <1168614859.800547.94620@i15g2000cwa.googlegroups.com>,
[quoted text, click to view]

Add a pre-build event that deletes the output DLL?

Nathan Mates
--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
Scot T Brennecke
1/13/2007 8:52:33 PM
Clean or Rebuild instead of just Build?

[quoted text, click to view]

gtsml.owevwr NO[at]SPAM googlemail.com
1/14/2007 8:57:33 AM
Deleting the DLL using an build-event or a simple Clean or rebuild will
indeed solve the problem.
But the compilation and linking time of the DLLs I'm working on are
just too big to consider that solution.

Note that the DLLs eventually gets corrupted only when I stop a build
during the *linking* stage.
Has anybody ever experienced that issue?

Frank
Scot T Brennecke
1/15/2007 10:06:53 AM
I would never expect the linker to give you predictable results if you interrupt it. If you
absolutely must interrupt it, then you must be prepared to clean up after doing so. If your
compiling and linking are too slow, then perhaps you need to be looking for a hardware solution
(faster processor, hard drive, network card, memory, etc.) that resolves the bottleneck.

[quoted text, click to view]

gtsml.owevwr NO[at]SPAM googlemail.com
1/16/2007 5:30:27 AM
Note that I don't expect the linker to give me predictable result.
But I do expect the build process not to mark a file as valid when it
is not.

Anyway, thanks a lot for your help!

[quoted text, click to view]
AddThis Social Bookmark Button