What is pNode??
It all depends on what you do with the information in pNode. Otherwise, the function is syntactically legal.
Or... is it an array of pointers you want to iterate? In that loop you'll be doing the same operation <length> times on pNode. [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal... once stated: methane@personal.ro
Again... it all depends on what you want to do with that pointer, be it smart or not.
It depends also on the behavior of... well... it depends on how smart is it, when it kilss himself anso, based on the documentation of the library you're using.
But, if not declared inside the loop, the pointer should not go out of scope and commit suicide, so it should be ok.
I'm interested also in other opinions so anybody should feel free to smash me if I'm wrong. [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal... once stated: methane@personal.ro
Well to be honest, nothing glaringly obvious at all, in fact I'm still not completely sure what was causing it.
I changed a few things, including turning Speed Optimisation off in the build setting, manually newing and deleting objects instead of relying on their constructors/destructors and other small things like trying to avoid wrapper classes where I could, eg. CComBSTR.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.