Welcome! Log In Create A New Profile Wiibrew Wiki HackMii Blog

Advanced

Problem with Pointers

Posted by Dreloc 
Problem with Pointers
April 19, 2012 05:24PM
Re: Problem with Pointers
April 20, 2012 12:05AM
In ScreenFact::getScreen() the int pointer that you pass to the new Test class points to an int that is local to that function i.e. when getScreen() returns, that int no longer exists and the pointer is no longer valid - it points to some random memory on the stack which is why you see it randomly changing.
Re: Problem with Pointers
April 20, 2012 09:54AM
Works perfectly now... sorry for the whole story and thx for reading through it
Re: Problem with Pointers
April 20, 2012 11:51AM
Good luck with your code! Looks complicated. how many layers do you plan to draw?
Sorry, only registered users may post in this forum.

Click here to login