Access violation in ISceneNode::clone(...)

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Squarefox
Competition winner
Posts: 113
Joined: Tue Aug 19, 2008 6:46 pm
Location: Delta quadrant, Borg nexus 0001
Contact:

Access violation in ISceneNode::clone(...)

Post by Squarefox »

Hello,

i've encountered an unhandled exception 0xC0000005: read access violation with the following code.
Worked fine with 1.7.3., now borked with 1.8.

Code: Select all

 
// copy all childs from the root node of the own scene graph
// under the specified node of the specified scenegraph
irr::core::list<irr::scene::ISceneNode*> const & childNode = PrivateSceneManager->getRootSceneNode()->getChildren();
for (irr::core::list<irr::scene::ISceneNode*>::ConstIterator child(childNode.begin()); child != childNode.end(); ++child
       (*child)->clone(_Parentnode,_SceneManager); // !!!here is the Access violation!!!
 
Greetings,
Squarefox
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Access violation in ISceneNode::clone(...)

Post by CuteAlien »

We have fixed few bugs with clone () functions in trunk already which happened in 1.8. So for now I recommend getting svn trunk and compiling Irrlicht from there or using a nightly build. If that's one of the problems we found already then it will be fixed in 1.8.1 again.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply