+1 Thursday, December 2, 2010, 6:47:11 PM, you wrote:
> I think it'd make much more sense to consistently make all APIs that > deals with strings like this not be NULL terminated. This would require > no API changes, just that the "semantics" would change. And I think the > requirement to 'release' strings could then go away entirely (since they > are just const char* pointers into the marshal buffers). > Below are a few APIs that would change their "behavior", in that they no > longer would gurantee NULL terminated strings (which is something most > APIs don't anyways).