hello
I am a little bit of a noob here, so please forgive me if i am posting this all wrong.
i have quite a hefty QT application that seems to eat up memory, then get slower and slower.
Posting code will be difficult as its quite large.
i have run valgrind and the only errors i can see are related to qt libraries.
Does anyone have some ideas as to where i can look at problem items?
i am opening and parsing a few files, but i am pretty sure i close them when finished before opening others.
essentially i am parsing a script file, which in turn open up other script files to process some data.
i am reading some lines of code using memset.
does this automatically delete itself? (its in a loop as such so i think that it gets re-written each time around.
for instance
memset(buff, 0, 1024);
numBytes = scriptfile.readLine(buff,100);
buff[39] = '\n';
memset(&buff[40], 0, 1024-40);
memset(buff, 0, 1024);
numBytes = scriptfile.readLine(buff,100);
buff[39] = '\n';
memset(&buff[40], 0, 1024-40);
To copy to clipboard, switch view to plain text mode
will this re-write the buffer each time??
any clues as to how i can debug this will be grateful.
i know its a bit vague, but the application is quite large and i have no idea where the problem section could be.
thanks in advance
P
Bookmarks