Answer the question
In order to leave comments, you need to log in
What happens to the pointer?
I am writing a courseworker. A very strange problem has arisen.
// Метод возвращает указатель на объект Account. Валидный, инициализированный объект, я вас уверяю на 99.99%.
Account* acc = e.getAccount();
// При попытке вызвать метод от этого указателя, указатель чудесным образом превращается... в 0xCCCCCCCC. Что простите???
User u = acc->getUser();
Answer the question
In order to leave comments, you need to log in
It's possible that getUser is in a library and the studio is just having trouble debugging the lib. (e.g. no symbols). Returning a normal User object?
Well, or such an exotic option as Engine e is declared locally and self-destructed before the getUser call, deleting the Account inside itself at the same time. (try Engine through new to create)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question