you create an array on the heap, but don't release memory after using this cause a memory leak about which you are talking, so you need to do the next
Qt Code:
... char* buf=new char[10]; ... delete[] buf;To copy to clipboard, switch view to plain text mode
Last edited by spirit; 28th January 2009 at 19:10.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
sorry, did not read carefully.![]()
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Bookmarks