View Issue Details

IDProjectCategoryView StatusLast Update
0003619JEDI VCL00 JVCL Componentspublic2006-04-19 02:53
ReporterKiriakosAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.10 
Target VersionFixed in Version3.30 
Summary0003619: JvChangeNotity does not clean up when an error occurs
DescriptionWhen an error occurs in TJvChangeNotify.SetActive the routine calls NotifyError which raises an Exception. However in that case no cleanup takes place (leaves Windows handles open) and fActive variable set to true while the ChangeNotify thread is not created.

Note tha such errors occure when a directory is pointing to a Novell drive for which change notification is not available.

Also I added the class EJVCLChangeNotifyException(Exception) to pass the drectroy in which the error occured, so that this i hanlded by the user.

THe attached file includes fhs fixes I introduced.
TagsNo tags attached.

Activities

2006-04-03 02:46

 

JvChangeNotify.pas (18,962 bytes)

obones

2006-04-13 02:46

administrator   ~0009081

Thanks, this is now fixed.
But next time, please use the JVCL style guide to do your coding.

Kiriakos

2006-04-18 17:08

reporter   ~0009135

The changes introduced are fine except that the ErrorDirectory property of EJVCLChangeNotifyException is not used.

Add the following line to EJVCLChangeNotifyException.Create
  fErrorDirectory := ErrorDirectory;

obones

2006-04-19 02:53

administrator   ~0009138

That's right. This is now in SVN

Issue History

Date Modified Username Field Change
2006-04-03 02:46 Kiriakos New Issue
2006-04-03 02:46 Kiriakos File Added: JvChangeNotify.pas
2006-04-13 02:46 obones Status new => resolved
2006-04-13 02:46 obones Resolution open => fixed
2006-04-13 02:46 obones Assigned To => obones
2006-04-13 02:46 obones Note Added: 0009081
2006-04-18 17:08 Kiriakos Status resolved => feedback
2006-04-18 17:08 Kiriakos Resolution fixed => reopened
2006-04-18 17:08 Kiriakos Note Added: 0009135
2006-04-19 02:53 obones Status feedback => resolved
2006-04-19 02:53 obones Resolution reopened => fixed
2006-04-19 02:53 obones Note Added: 0009138