ensure cwrapperpm is initialized to NULL.