Symptoms
Recently found the compatibility issue is a troublesome problem especially when we are supporting different version of RTD.
Remove/install the RTD SDK and plug, but it is not a perfect way because reinstall the RTD would cause a lot of time, sometimes it is unreliable.
Diagnosis
After investigated the mechanism of CT and MEX file, and found a work around to let the old project can be run in new version of RTD basis.
Solution
Already tested it with several reference code and examples of RTD, it can work. Attached is the document.