Can you be more specific? Can you show us the EXACT code and tell us the EXACT error message, as well as the type of the exception and the stack trace? We really shouldn't have to ask you not to provide vague approximations of error messages. It sounds like it might have something to do with resizing the queue's internal array but that should happen automatically without throwing an exception. What is the Count and Capacity at the time?
Its just a normal enqueue into a queue of picturebix type. _message="Source array was not long enough. Check srcindex and length, and the array's lower bounds." _hresult="-2147024809" there are still 3 items in the queue. It only happen sometime. Even the same hundred of picturebox with same image. Afterward it will leave the last slot empty.
It might be because the enqueue and dequeue are on different threads. Guess i need to lock it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.