Without the code i have to make a guess at it, but what happened to me when i had that error is that i had created the instance of the class in another function like this
ClassName* className = new ClassName();
when you then try to access it from another function, it does not exist anymore. The instance is created in that function and is only accessible there.
What solves it, is having the
ClassName* className
part in the headerfile
and then in the sourcecode have
className = new ClassName();
Hope this helps.
ClassName* className = new ClassName();
when you then try to access it from another function, it does not exist anymore. The instance is created in that function and is only accessible there.
What solves it, is having the
ClassName* className
part in the headerfile
and then in the sourcecode have
className = new ClassName();
Hope this helps.