Okay now after a couple of hours speding my time on searching for "does this leak" threads i have a NEW question.
In every thread there are 2 sides:
Group 1: The asking users
Group 2: The "that leaks" users
The process always is the same:
"Does this leak?" - "yes it does .....(posting some functions)" - "*nods* ok"
Maybe my english skills are too bad but i didnt find any "why does something leak if i dont create a varbiable that can leak?"
Let me explain: As a software engineer (C++) i've learned that "leaks" among other things are caused by no longer needed variables that are left in memory.
BUT if you pass the result of a function to another function there is nothing that can leak - because there is no variable.
So please could anyone (maybe a real software engineer) explain why using an objects property in a function (random point in a(function)("region"("name" of an object))) causes a leak???
or do i mix things here?
EDIT: btw - our tutors were some well read guys but no professionals so maybe they've teached some things wrong
In every thread there are 2 sides:
Group 1: The asking users
Group 2: The "that leaks" users
The process always is the same:
"Does this leak?" - "yes it does .....(posting some functions)" - "*nods* ok"
Maybe my english skills are too bad but i didnt find any "why does something leak if i dont create a varbiable that can leak?"
Let me explain: As a software engineer (C++) i've learned that "leaks" among other things are caused by no longer needed variables that are left in memory.
BUT if you pass the result of a function to another function there is nothing that can leak - because there is no variable.
So please could anyone (maybe a real software engineer) explain why using an objects property in a function (random point in a(function)("region"("name" of an object))) causes a leak???
or do i mix things here?
EDIT: btw - our tutors were some well read guys but no professionals so maybe they've teached some things wrong