Does anyone know of a compiler directive that I can put around a specific section of my code that will tell the compiler NOT to optimize that particular block of code?
I have a situation where some of my code works when compiled for "Debug", but it doesn't work when compiled for "Release". I'm thinking that the compiler is optimizing-away some of my code. I'd like to tell it to "don't touch" this code.
Any ideas?
Thanks!

I have a situation where some of my code works when compiled for "Debug", but it doesn't work when compiled for "Release". I'm thinking that the compiler is optimizing-away some of my code. I'd like to tell it to "don't touch" this code.
Any ideas?
Thanks!