Search found 2 matches

by valerakopay
Mon Jun 25, 2018 1:46 pm
Forum: Automation Discussions
Topic: User code with FileSystemWatcher hangs?
Replies: 2
Views: 2477

Re: User code with FileSystemWatcher hangs?

User Code started to work as it should when I started Watch() function in another Thread: newThread = new Thread(new ThreadStart(Watch)); newThread.Start(); newThread.Join(); But now user code works in eternal cycle "while(true)". Is it possible to stop it from outside? The best way to stop it would...
by valerakopay
Fri Jun 22, 2018 12:05 pm
Forum: Automation Discussions
Topic: User code with FileSystemWatcher hangs?
Replies: 2
Views: 2477

User code with FileSystemWatcher hangs?

Hi everyone! Scenario: after Ranorex interaction with some desktop apps I need to find new created files and folder and copy them to another location. I'm not c# developer, so I just copied some code and it woks fine at visual studio. Here's code: using System; using System.Collections.Generic; usin...