Re: How to create in memory QFile

Originally Posted by
sonulohani
Then do coding in java, why r u here? Its depend on your program methodology. And if someone is here than atleast he should know the basic concept of c++(memory allocation). You shouldnt have to think about what they do with this code or if he /she will understand this code or not. Okay, point out the line that is causing memory leak in my code.
You are the one writing like java: Allocating on the heap when only a local variable is needed - check. Using new without delete - check.
Your leak has been pointed out already, although why you couldn't see it for yourself is concerning.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Bookmarks