Cocos2d-x AppDelegate pointer/object
<p>So I'm messing around in cocos2d-x, and I've loaded the hellocpp template to do this. I wanted to create a new scene, so i made a new function in app delegate to handle the transition.</p>

<p>The problem : I need to access AppDelegate class functions in my helloworld class. AppDelegate has virtual functions and therefor cannot be accessed via a normal object, therefor pointers need to be used to access anything inside. When I use a pointer, <code>AppDelegate *appd;</code> and call upon a function inside appd <code>appd-&gt;transition();</code> if there's any code within the appd function im calling (For example, giving a public variable within appd a value) the program crashes telling me there's an access violation <code>Unhandled Exception at 0x00D72776 in HelloCpp.exe: 0xC0000005: Access violation writing location 0x00000054</code>.</p>

<p>What am I doing wrong?</p>
