I’m having trouble getting a thread to work properly, and I’m wondering if there’s a conflict with some Shell commands.
I have a procedure to check for files being updated on a website by using the Shell command kurl. I don’t need it to be timely, so I’ve put it into a thread. But I’ve noticed that the main app stops while I’m retrieving the file. Has anyone else run into this? Am I doing something wrong with threads? (And I’ve tried the priority at 1 and at 15 with no difference.)
[quote=124093:@C L Hinkle]I’m having trouble getting a thread to work properly, and I’m wondering if there’s a conflict with some Shell commands.
I have a procedure to check for files being updated on a website by using the Shell command kurl. I don’t need it to be timely, so I’ve put it into a thread. But I’ve noticed that the main app stops while I’m retrieving the file. Has anyone else run into this? Am I doing something wrong with threads? (And I’ve tried the priority at 1 and at 15 with no difference.)[/quote]
Some shell commands can tie up the caller (your app), and if you use Mode 0 (synchronous) for your shell, it may take all the thread processing power. It may be the case.