Other Software > Developer's Corner
A Bonehead Programming "Bug"
wraith808:
I had a similar problem recently that I spent half the day on :-[
In one particular case, the data wasn't rendering. I called over someone to look at it with me, and she pointed out that in the case where it wasn't rendering, I wasn't returning a value, just null. D'oh!
And on that subject... I saw this piece of code:
--- Code: C# ---private void Execute(){ if (InvokeRequired) { lock (new object()) { if (m_instance != null) Invoke(new threadDelegate(Execute), new object[] { }); } } else { if(OnInstanceChanged != null) OnInstanceChanged(); }}
WTF?!?
kyrathaba:
@OP: Heh, you've only done that twice? I'm sure I've done it several times :P
Renegade:
@OP: Heh, you've only done that twice? I'm sure I've done it several times :P
-kyrathaba (September 20, 2012, 07:27 PM)
--- End quote ---
Actually, I only *remember* doing it once before, and the other time I spent, well, lets just say more than 15 minutes. :-[
jgpaiva:
It's even funnier when you forget to start a thread in a multi-threaded program. Just happened to me. Twice :P
Navigation
[0] Message Index
[*] Previous page
Go to full version