View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003715||JEDI VCL||00 JVCL Components||public||2006-05-20 09:40||2006-06-09 03:10|
|Target Version||Fixed in Version||3.30|
|Summary||0003715: JvThumbViews keeps directory open|
|Description||JvThumbViews does not release the directory even if I change the directory entry.|
For example, if I set the directory property to 'c:\testdir', and then change it to 'c:\newdir', the original 'c:\testdir' is still marked as in use and I cannot change the name of that directory (Access Denied error).
|Additional Information||This is a major issue since I have a panel showing images used in a particular directory. I then want to restore data from a backup, and the first thing I do is to rename the original directory (of which the image directory is a subdirectory of the one I want to rename). I tried changing the JvThumbViews to different directories before the rename, and even set it to an empty name, i.e. '', but unless I never set that directory to a subdirectory of the one I want to rename, I cannot do the rename.|
It looks like perhaps the FindClose might not always get called within the GetFiles routine (the FindFirst is paired with another conditional which could prevent the FindClose from being executed).
I've compared this version with the latest 3.20 version, and see no source code changes, so I suspect the bug is still there.
|Tags||No tags attached.|
Can you attach the zipped sources of a sample application showing this problem?
ThumbViewBugDemo.zip (330,255 bytes)
||I've included a revised TJvThumbViews.pas that appears to correct the problem (corrected the FindClose issue).|
JvThumbViews.pas (35,082 bytes)
||This is now in SVN.|
|2006-05-20 09:40||rickwhisper2||New Issue|
|2006-05-20 11:08||obones||Note Added: 0009327|
|2006-05-20 11:08||obones||Status||new => feedback|
|2006-05-23 10:22||rickwhisper2||File Added: ThumbViewBugDemo.zip|
|2006-05-23 10:47||rickwhisper2||Note Added: 0009344|
|2006-05-23 10:48||rickwhisper2||File Added: JvThumbViews.pas|
|2006-06-09 03:10||obones||Status||feedback => resolved|
|2006-06-09 03:10||obones||Resolution||open => fixed|
|2006-06-09 03:10||obones||Assigned To||=> obones|
|2006-06-09 03:10||obones||Note Added: 0009525|