Closed GoogleCodeExporter closed 9 years ago
Taking, ETA early next week.
Original comment by mmento...@gmail.com
on 27 Jan 2007 at 12:48
The problem with the _set_invalid_parameter_handler handler is that all
paramters of
the function are NULL in release version:
http://msdn2.microsoft.com/en-us/library/a9yf33zb(VS.80).aspx "The parameters
all
have the value NULL unless a debug version of the CRT library is used."
So the dump generated in that case won't contain any exception information to
locate
where the crash happened :(
A workaround is to use the code explained at
http://blog.kalmbachnet.de/?postid=75
That allows to catch all CRT exceptions in airbag, so no need to set the
invalid_parameter_handler, those will be caught like any other exception with
the
full information.
I don't really like this modifying the memory workaround but I haven't found
anything
better to get the exception information in all cases...
Original comment by ylenerr...@gmail.com
on 7 Feb 2007 at 8:02
120.2 checked in.
Comment 4: it's unfortunate that the release build of the CRT doesn't include
the
parameters, but even so, allowing the option to trap the invalid parameter
event in
Airbag is important. Keep in mind that the dump that Airbag writes can produce
stack
backtraces that should pinpoint the failed CRT check.
Original comment by mmento...@gmail.com
on 7 Feb 2007 at 8:28
Original issue reported on code.google.com by
dar...@gmail.com
on 26 Jan 2007 at 6:41