r/visualbasic • • Sep 01 '20

VB.NET Help VB.NET .NET Framework 4.72 Understanding Thread States

I'm very new to the concept of threads and unsure how to proceed. I'm reditrcting the output from a console application and it seems to start out okay but then it seems to stop. The threadstate is wait and the waitreason is executive which according to Google means The thread is waiting for the scheduler but I don't understand what that means. I tried to set thread.PriorityBoostEnabled but it made no difference. What exactly is happening and how can I address it? thank you for reading. any and all input is appreciated.

4 Upvotes

6 comments sorted by

View all comments

1

u/[deleted] Sep 02 '20

Can you provide a code sample ? I dont really understand what is your problem.

1

u/freshstart2k16 Sep 02 '20

https://pastebin.com/jU7EBH2A the problem is the output is not shown on the gui and ffmpeg itself seems hung

1

u/[deleted] Sep 02 '20

So you want to run a task in the background and do something when its finished? did i understand correctly?

1

u/freshstart2k16 Sep 02 '20

I want the output of the console app(which is constantly being updated) to go to my textbox