|Anonymous | Login | Signup for a new account||2018-12-19 05:39 CET|
|Main | My View | View Issues | Change Log | Roadmap | Docs|
|Viewing Issue Simple Details|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0003824||[JEDI VCL] 00 JVCL Components||major||always||2006-07-23 13:20||2006-07-24 01:08|
|Summary||0003824: Memory leak on FUrlGrabberThread|
The JvUrlListGrabber file contains a repeating memory leak in the TJvHttpUrlGrabberThread class. Every time something was downloaded a leak of 92 bytes is generated. This was found with fastmm4. The fix for this bug is here:
if Assigned(FUrlGrabberThread) then
// If there is a thread, terminate it and let it destroy
// itself as we don't need it anymore
Before it was settings FreeOnTerminate to true and then terminating the thread. For some reason this doesn't actually free the thread. Probably because the thread has already terminated by the time the call to terminate comes in.
|Tags||No tags attached.|
This is now fixed in SVN, but please note that calling WaitFor like you did is a recipe for disaster as it will wait until the thread has finished the download while Stop is meant to abort the currently running one.
Hence the call to WaitFor should be replaced by a call to Terminate. The destructor from TThread will actually wait for the thread to be finished.
|2006-07-23 13:20||altera||New Issue|
|2006-07-23 13:24||altera||Issue Monitored: altera|
|2006-07-24 01:07||obones||Status||new => resolved|
|2006-07-24 01:07||obones||Fixed in Version||=> Daily / SVN|
|2006-07-24 01:07||obones||Resolution||open => fixed|
|2006-07-24 01:07||obones||Assigned To||=> obones|
|2006-07-24 01:07||obones||Note Added: 0009844|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|