K
KS
Hello,
I have a memory leak in my application and I have identified two lines
of code that cause the leak. If I comment out these lines, the program
runs fine. If left uncommented, the memory usages keeps increasing till
the program terminates due to lack of available memory.
I have marked the two lines that cause this problem in the code in the
function main() (at the bottom of the file).
Code: http://www.grex.org/~kpp/cmultiknapsack.cpp
Required File in the same directory:
http://www.grex.org/~kpp/orlib1.txt
Can you identify the problem? (I know the code needs a lot of work but
first I must fix this leak)
KS
I have a memory leak in my application and I have identified two lines
of code that cause the leak. If I comment out these lines, the program
runs fine. If left uncommented, the memory usages keeps increasing till
the program terminates due to lack of available memory.
I have marked the two lines that cause this problem in the code in the
function main() (at the bottom of the file).
Code: http://www.grex.org/~kpp/cmultiknapsack.cpp
Required File in the same directory:
http://www.grex.org/~kpp/orlib1.txt
Can you identify the problem? (I know the code needs a lot of work but
first I must fix this leak)
KS