Good morning,

thanks for your reply, Danny. Yes, true, I was dodging the bullet. Or 
something even more tricky like dodging the bullet I shot in my feet. 
First I was scared, how can this happen, different results when running 
and debugging. But after finding the bug and figuring out what I did and 
what is done behind it, its not so strange any more.

> To fix the problem, you should zero-out the pointer after deleting the
> thing it points to avoid a dangling pointer (or use a RAII smart pointer).

This was not fixing anything. I set them to zero, all of them. To fix it 
I should just stop to delete an object twice.

> But again there really are few reasons to be using old style arrays in
> C++ these days. Even if you're using an older API, std vector provides
> access to it's contents.

I have my reasons. All these data will be passed to OpenGL. But that's 
not the problem anyway.

Thanks and regards
Paul.
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to