The app is the main program in Procedural Trees (latest version). I wrote no app for now.
I recompiled it with -g flag.
GDB output:
-------------------------------------------------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
0x0804cab3 in irr::IReferenceCounted::drop (this=0x0) at ../../include/IReferenceCounted.h:116
116 --ReferenceCounter;
(gdb) bt
#0 0x0804cab3 in irr::IReferenceCounted::drop (this=0x0) at ../../include/IReferenceCounted.h:116
#1 0x0804bf57 in main () at main.cpp:142
--------------------------------------------------------------------------------------------------------
Here's the function....
--------------------------------------------------------------------------------------------------------
int main()
{
srand( (u32)time(0) ); // This is to generate random seeds.
IrrlichtDevice* device = createDevice( video::EDT_OPENGL );
CEventReceiver receiver;
device->setEventReceiver( &receiver );
manager = device->getSceneManager();
driver = device->getVideoDriver();
gui::IGUIEnvironment* guienv = device->getGUIEnvironment();
//
// Load tree designs
//
for ( s32 i=0; i<NUM_TREE_DESIGNS; i++ )
{
treeDesigns
.Generator = new CTreeGenerator( manager );
io::IXMLReader* xml = device->getFileSystem()->createXMLReader( treeDesignFiles.DesignFile );
treeDesigns.Generator->loadFromXML( xml );
xml->drop();
treeDesigns.TreeTexture = driver->getTexture( treeDesignFiles.TreeTextureFile );
treeDesigns.LeafTexture = driver->getTexture( treeDesignFiles.LeafTextureFile );
treeDesigns.BillTexture = driver->getTexture( treeDesignFiles.BillTextureFile );
}
......
......
......
---------------------------------------------------------------------------------------------------------
I'm not enough skilled in this to debug it, please help! 