When I try to virtualize some code lines in my function, Code Virtualizer complains that the VIRTUALIZER_END marker is not found. I tried #pragma optimize("",off) but same result.

<< Click to Display Table of Contents >>

Navigation:  Code Virtualizer > FAQ > General >

When I try to virtualize some code lines in my function, Code Virtualizer complains that the VIRTUALIZER_END marker is not found. I tried #pragma optimize("",off) but same result.

Please, try first putting some more code inside the macro or if you want, you can send us any application to reproduce the problem. Normally, it's due to compiler optimizations (though you have already disabled them). Also, make sure that the "END_VIRTUALIZER" marker is not the last instruction in your function/procedure (to avoid being removed by compiler optimizations)