It seems that a setScale is crashing my program. I want to change the scale.Y of an array of objects. Everything goes fine, but after a while, 10-15 seconds, the program crashes
If I comment the setScale command, the program doesn't crash
I'd be willing to bet that the problem is not with setScale(). Are you absolutely sure that the scene node pointer stored at nodeW[k] is not an invalid pointer?
Which makes it pretty sure that you're invalidating your pointers somehow. Maybe some other code is overwriting the array? Or you drop() some elements?
Finally I found the problem... I was not checking correctly the data that I was getting from the database, so at a certain point I was referencing to a node that didn't exist => CRASH!