
VC1.52 Compiler optimisation problem
VC++ optimizer is very aggressive, and while generally this results in
very small or fast code it does sometime cause problems. Generally this
will occur in fairly large or complex operations, but can also happen in
stiaght forward ops. Basicaly in that situation the compiler is making
an assumption about the code, which is wrong. The only solution is to
a.) turn off all optimizations
b.) turn of optimizations for that function (#pragma)
c.) discover whcih optimization is causing the problem and turn that off
for either the app or the function
--
Author for Visual C++ Devloper http://www.*-*-*.com/
---
Isn't it a bit unnerving that doctors call what they do "practice"?
---