This is a great example and very clean and simple to understand, thankyou for making this video. I have only just started learning about the importance of threading after discovering the limitations and delays caused when UI application suffer in response times without threading.
I havent read all the comments here but anyone that says timers are are better is a simpleton and has no idea of the implications when the two are compared. my suggestion, ignore the pro timer noobs.
In terms of teaching, this video is not hugely good. What someone will learn is the exact code to use, with no idea why they are using it. You didn't even explain the reasons why people would want to use threads.
The tutorial is very fine for beginners to understand the multithreading concept. However, alkeli78 is right and you should mention (maybe in the 2nd part of this tutorial ?) that checkforillegalcrossthreadcalls = false can potentially cause severe problems, especially in more complex applications. According to the advices from MS, you should create the delegate sub and check whether the invoke method is required to be called or not.
Video is not bad, but you need to mention that setting checkforillegalcrossthreadcalls to false could cause major problems if you have multiple threads running and they both try to access an object at the same time.
In this case you need to use synclock or monitor for running multiple threads
A timer is not better, you are a terrible coder if you think they are. Threading use's less ram, and has less exception errors. Thank you for posting your terrible input. Please learn how to code, by the way @UserIsAnFBIAgent, good video.
This is a great example and very clean and simple to understand, thankyou for making this video. I have only just started learning about the importance of threading after discovering the limitations and delays caused when UI application suffer in response times without threading.
I havent read all the comments here but anyone that says timers are are better is a simpleton and has no idea of the implications when the two are compared. my suggestion, ignore the pro timer noobs.
TorTecStore 2 months ago
In terms of teaching, this video is not hugely good. What someone will learn is the exact code to use, with no idea why they are using it. You didn't even explain the reasons why people would want to use threads.
MrBackInBlack123 4 months ago
thread vs timer thread win timer fails
PCHacker932 7 months ago
The tutorial is very fine for beginners to understand the multithreading concept. However, alkeli78 is right and you should mention (maybe in the 2nd part of this tutorial ?) that checkforillegalcrossthreadcalls = false can potentially cause severe problems, especially in more complex applications. According to the advices from MS, you should create the delegate sub and check whether the invoke method is required to be called or not.
borntoslide2 7 months ago
Video is not bad, but you need to mention that setting checkforillegalcrossthreadcalls to false could cause major problems if you have multiple threads running and they both try to access an object at the same time.
In this case you need to use synclock or monitor for running multiple threads
alkeli78 10 months ago
A timer is not better, you are a terrible coder if you think they are. Threading use's less ram, and has less exception errors. Thank you for posting your terrible input. Please learn how to code, by the way @UserIsAnFBIAgent, good video.
Pulsifyed 10 months ago
@Pulsifyed Seeing that most professional applications use Threading, ... tnx for the help, and support pulsifyed, ...
UserIsAnFBIAgent 10 months ago
a timer is better
yotamarker 1 year ago
@yotamarker How, because that's where I'm coming from? Write me a PM, and explain why you think Timers are better.
UserIsAnFBIAgent 1 year ago
@UserIsAnFBIAgent it does the same thing as a thread and there is no coding required, just add a timer and put the code in it's tick event.
check out my videos they are loaded with vb.net special codes like get joystick input.
also it would be great if you tell me what you think about my a.i yotamarker
yotamarker 1 year ago
@yotamarker
Put a While True and End while in a timer, run the code try pressing buttons in the form.
Then put a while true and end while in a thread and try pressing the buttons.
That's one of the major reasons why people love to use threads.
MEGAXSTU 9 months ago