Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
BuzzerBee wrote:It's not something arguable... The Boolean for illegal cross-thread calls was only kept in later versions of .NET Framework for backwards compatibility...
The only thing you are arguing is your right to take dangerous shortcuts, which is a right you do possess. So keep doing you and let me know when your app crashes
I'll let you know then when it never crashes. Dangerous shortcut my ****.
Lol I don't know why you're trying to prove me wrong it's not really a debate. It is a dangerous shortcut, that is a fact.
Like I said, the only thing you should be arguing whether someone should use it as an alternative if they're too lazy to invoke
Offline
You're right, it may never crash. But it's a bad habit regardless.
Talk to me when you have some valuable input
Offline
is this debate/discussion neccesary? if people are too lazy to use invoke methods or whatever let them, i dont see a point in trying to force them to use invokes.
being lazy is a bad habit aswell and im totally fine with that
if you can read this....good for you
Offline
is this debate/discussion neccesary? if people are too lazy to use invoke methods or whatever let them, i dont see a point in trying to force them to use invokes.
being lazy is a bad habit aswell and im totally fine with that
Nope it's not necessary lol that's why I keep trying to end it with snarky remarks
Offline
Alternatively, don't use threads.
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
I, too, must inject my own opinions, beliefs, and whatnot.
Also seen on SO: http:// (S O ) .com/questions/13345091/c-sharp-checkforillegalcrossthreadcalls
"Or only on a particular user's machine, you'll blame the user instead of your code."
"trouble that causes is extremely hard to diagnose."
I like lrussell's string to int conversion. Very useful. I plan to implement soon.
I also like how marco felt compelled to hold the "9" key down instead of simply writing one of those fancy infinite loops
but hey who's counting
Oh, and you know how to code good? well for you! (anyone at all see what I did there)
I figure programming IS supposed to be easy. I mean, there's tons of things out there about code re-use and class inheritance... and... stuff... different ideas that make programming more than simply copy/pasting lines of code. We have loops, you don't have to type out each command in a sequence... we have functions so... something else good happens!
But in this case, "easy" is an illusion. You might think you're getting off scot-free. But, in reality, you're opening your program up for bugs. You pretend they aren't there.
Imagine working in Word or something. You have a research paper due. (Shockingly, you're cramming!) You're almost done and ready to save. As you click that one multi-thread button (no idea which one)... all of your work is lost! Oh well. Should've invoked.
(Obviously you folks will never go to work developing Word or some other high-profile program. But there's a chance you do make something where users count on your dependability and it's your job to repay that with reliable bug-free results.)
"don't use threads"
haha good one
pretty sure the onmessage is already on a different thread.
out of luck there I guess.
k well have fun
Offline
(Obviously you folks will never go to work developing Word or some other high-profile program. But there's a chance you do make something where users count on your dependability and it's your job to repay that with reliable bug-free results.)
(Obviously you folks will never lose Form1.cs and Form1.Designer.cs due not using invoking)
I also like how marco felt compelled to hold the "9" key down instead of simply writing one of those fancy infinite loops
What's the problem? I don't want to make an infinite loop.
I like lrussell's string to int conversion. Very useful. I plan to implement soon.
It's not his, it's alkzam's.
Offline
Can't we just stop this discussion..? We've stated the facts, we've stated the opinions. Leave it upto the developers to choose.
I would recommend to sticky this topic or make some sore of topic that holds all kinds of tips and tricks (this one included).
Offline
Can't we just stop this discussion..? We've stated the facts, we've stated the opinions. Leave it upto the developers to choose.
Offline
The discussion ended a while ago.
Offline
[ Started around 1732478090.6512 - Generated in 0.054 seconds, 13 queries executed - Memory usage: 1.52 MiB (Peak: 1.67 MiB) ]