Is there some optimization that automatically converts a zero-height capsule to a sphere in Release build but not in Debug? The docs for the capsule state that it must have nonzero radius and height. And we are getting an errorwhen someone accidentally is creating a zero-height capsule, as we should. But we don’t get that error in Release build and I was just wondering why?
Most error checking for API entry functions is done in DEBUG and CHECKED configurations, release and profile is meant to be as fast as possible.
For development it is recommended to work witch CHECKED configuration, where the checking is enabled and optimizations are also enabled.
Okay - but it’s a bit weird that you get different results from the two configurations. In Debug, creating a capsule with zero height returns a null pointer, whereas in release it returns a valid sphere, apparently.