I meant what I posted, though it is fraught with "dragons be here" issues. The member variable will be non-existent when creating the pointer version in my original version. So either remove the member variable, or actually create the pointer properly. Using new also works.