VS2005 C runtime and _set_invalid_parameter_handler
Posted on 2006-11-08
VS2005's C runtime has security enhancements that catch problems at runtime with functions like:
there is a mechanism to setup _invalid_parameter_handler using the _setup_invalid_parameter_handler function. If a runtime event happens the handler gets called. Ok, that's good.
But when this happens (in the field as always) there does not seem to be any way to relate this back to the source. You get line number information but it's from the source of strcpy_s and not my code that calls strcpy_s.
How can such an error be referenced back to a source code line that I've written?