"Chris O'C via AccessMonster.com" <u29189@uwe> wrote in
news:950e202dbcdc8@uwe:
> The decompile switch is undocumented, unsupported and wasn't
> intended to be used the way you are using it. In Michael Kaplan's
> words, "IF IT AIN'T BROKE, DON'T FIX IT." According to Michael's
> advice, don't use decompile constantly because "you are relying on
> the canonical text always being completely valid, and you are
> relying on the ability to globally invalidate a compiled state.
> If there is ever a problem in either area, /decompile will take a
> project that was working fine and turn it into cottage cheese."
I think Michael's warning on /decompile was always hysterically
overblown, as I use it regularly as a part of my development
process.
Of course, I also compile frequently (after every few lines of
code), and decompile only after making a backup. I've only lost a
few lines of code a couple of times, and that was only when
decompiling after a database was already crashing. Sometimes the
decompile would crash Access, but then a compact and another
decompile would work (and in those cases, some code could be lost).
The danger, I think, is in decompiling only very rarely (i.e., just
before distributing your app). If you do it often, you keep the crud
out of the compiled code and don't run into problems.
In my experience, that is.
Of course, you also have to have COMPILE ON DEMAND turned off and
you have to use OPTION EXPLICIT everywhere and you have to compile
regularly. This insures that you don't have bad problems developing
in your project over time, and thus, there's very little chance of
loss of canonical code when decompiling.
MichKa made that recommendation back in 1999. At that point, I'd
already been decompiling A97 very frequently (moreso than I
decompile in later versions) and had never lost a line of code
except when I knew the code was already corrupted when I decompiled.
And in the 10 years since then, I don't recall losing a single line
of code (at least not enough of it for it to be a bad enough problem
to be memorable). So, I really think MichKa was overstating the
danger.
Of course, backup, backup, backup insures that you never lose
anything.
--
David W. Fenton
http://www.dfenton.com/
usenet at dfenton dot com
http://www.dfenton.com/DFA/