Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
altered variable contents
#13
Explorer executes the registry command for each file. In this case, the macro is called multiple times, for each file. If it is macro, and it is still processing first file when called for second file, the macro for second file does not run, because two macros cannot run simultaneously. If it is function, and it is still processing first file when called for second file, two instances (threads) run simultaneously. Of course can be more than two. I don't remember what synchronization is used in net, and afraid that it can fail (possibly on the receiving computer) if called simultaneously by several threads. That is why I suggest to use lock. Or use macro with 'Wait' selected in Properties.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)