Good discussion on va_arg?
It's really too long to go into specifics, but the basics are this: I have a program that's using va_arg and its friends to make calls to a function that takes inputs a lot like printf does (you don't know in advance how many parameters will follow nor of what type they'll be). It works fine in Debug, but when I build a Release version, I have an exception that if I trace it shows the parameter gleaned from va_arg as not the value that I tried to pass. In debug this same instance is fine.
So while I'm not looking for specific code help, any help you can give me on va_arg and why it won't work release vs. debug would really be helpful. If there are articles or newsthreads out there, or if you've worked with this before, whatever you can tell me will help!
PS: I've already come across a discussion of using #pragma auto_inline(off) and that didn't seem to make a difference.
So while I'm not looking for specific code help, any help you can give me on va_arg and why it won't work release vs. debug would really be helpful. If there are articles or newsthreads out there, or if you've worked with this before, whatever you can tell me will help!
PS: I've already come across a discussion of using #pragma auto_inline(off) and that didn't seem to make a difference.
