This merge should address that issue in all the places I was seeing it happen.
By setting private data on a resource to null to clear it before assigning that private data for the debug object name, it is not causing an unhandled exception anymore in debug mode when the buffer lengths do not match.
I was having the same issue mentioned here https://github.com/TheRealMJP/MSAAFilter/issues/3
This merge should address that issue in all the places I was seeing it happen.
By setting private data on a resource to null to clear it before assigning that private data for the debug object name, it is not causing an unhandled exception anymore in debug mode when the buffer lengths do not match.