A little bit of everything. To be honest I am not sure how my code runs at all, it's like eight threads and they all depend on each other to be in certain states at certain times and all kinds of fun stuff like that. I'm afraid if I try to fix this bug I'll introduce another 20, so for now the "hack" works fine.TommyCarlier said:How is it protected by a Mutex? Is there a lock at each access point in code? Is the entire block (check for Length + access elements) locked by 1 lock?Bass said:*snip*
The array can be accessed by multiple threads, but it's protected by a Mutex.stevo_ said:Bass said:*snip*
You must be multithreading the array because theres no way that should be happening, at most you should be getting a fatal exception because of environmental failure (like littleguru's example).
At design time. I have a Form that right now would probably make better sense as a UserControl. Since UserControl and Form seem almost identifical classes, I figured there was some kind of automatic refactor way to do it.
I get the same exception "IndexOutOfRangeException" with code that looks sort of like this:
if (blah.Length != 0)
or something like that. Basically I explicitly check that the array has at least one element and it still throws this exception every now and then!
My hack was to basically catch this rare exception and ignore it. (Accessing the array really isn't that important in the grand scope of things in this program)
See subject. Is this possible? This question is in regards to WinForms.
Ubuntu - freebrian.shapiro said:VB Man said:*snip*
Vista Home Premium Upgrade - $129.95
Windows Live - Photo Gallery / Movie Maker / Writer
It's all perception
OpenOffice - free
It's all about perception?
Anyway you can say Apple products cost more but that says nothing about value.
The phone's hardware (namely the RAM and battery) isn't really designed for multitasking. That's really all there is to it.CreamFilling512 said:Bass said:*snip*
I think he means the fact third-party apps can't run in the background, which prevents entire classes of applications from being developed, like an instant messaging alternative.
Speed of light is the maximum speed anything can travel, anything with any mass will always travel slower then the speed of light, even electrons accelerated very fast travel slower then the speed of light.BlackTiger said:Hmmm... Very interesting idea... Never thought about that.
If the is no light then there is no "speed limit" as well...