View Issue Details

IDProjectCategoryView StatusLast Update
0000430CheckAutoStartGeneralpublic2010-11-22 14:13
ReporterKeller Assigned To 
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionV1.4 
Target VersionV1.5Fixed in VersionV1.5 
Summary0000430: AutoStart.exe is triggered again after finished
DescriptionWhen the AutoStart.exe is run, CheckAutoStart waits until it finishes. The AutoStart.exe is immediately started again. This is not intended. However in combination with the Update program, this never showed as a problem, because the Update program requests to remove the update media and then it can't be started again. But if AutoStart.exe is some other program (e.g. StartSlideShow), then this is an annoying problem.
Steps To ReproduceUse AutoStart.exe program that ends after a while. CheckAutoStart >=V1.1 is running, the AutoStart.exe program will be triggered immediately again.
Additional InformationIn V1.1 of CheckAutoStart, we changed the behaviour to a loop so that the AutoStart.exe will be found again when the USB stick or SD card is inserted again. However there was an error in the code that triggered the program immediately again even without removing and re-inserting the media.
Forum Link

Activities

Keller

2010-11-22 14:11

manager   ~0000288

The new loop did not call FindNextChangeNotification() before going to WaitForSingleObject() again. Therefore the old change was reported again, i.e. WaitForSingleObject() returned immediately instead of after the next directory related change in the root directory. By calling FindNextChangeNotification() unconditionally, this behavior is now corrected.

Keller

2010-11-22 14:13

manager   ~0000289

Call FindNextChangeNotification() in the correct places.