zpc930 / oolongengine

Automatically exported from code.google.com/p/oolongengine
0 stars 0 forks source link

Skybox renderer example runs in simulator but not on device #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. checkout rev 125 from svn
2. compile
3. run

The Skybox Renderer example runs in the simulator but on the iPhone it only 
compiles. When 
trying to run the app on the iPhone the app automatically exits when attempting 
to launch.

rev 125, XCode 3.1.2, iPhone 2.2.1, original iPhone, intel MacBook

Original issue reported on code.google.com by salsi...@gmail.com on 7 Feb 2009 at 1:46

GoogleCodeExporter commented 8 years ago
This is a quick fix (I'm surprised it works in the simulator):

In your CShell::Init function, the Texture and FileName are being deleted 
twice.  My
recommendation is to always null out after deleting, and to check if a variable 
is
null prior to deleting it.  This makes Leaks understand that the memory has been
released so it's better for the tools watching for memleaks.
Anyway, if you do something about the two lines calling delete on two already 
deleted
but still referenced pointers, then this example fires right up on the device.

Original comment by gpx1...@gmail.com on 17 Feb 2009 at 8:16

GoogleCodeExporter commented 8 years ago
Thanks for the fix!

Original comment by wolfgang...@gmail.com on 21 Feb 2009 at 1:56