Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I set the progress on a progress bar through a delegate event, throws the above error.

C#
private void UpdateProgress(string strIn, string strType, int iBlockCount)
        {
            if (this.txtOutEvent.InvokeRequired)
            {
                SetTextCallback d = new SetTextCallback(UpdateProgress);
                this.BeginInvoke(d, new object[] { strIn, strType, iBlockCount});
            }
            else
            {
                EventLogger(strIn);

                this.progressBarUpdate.Value = iBlockCount;
            }
        }


any idea?
Posted
Comments
Pradeep Shukla 29-Sep-11 12:47pm    
There is no error mentioned in your question.
CodingLover 29-Sep-11 21:22pm    
Please have a look at the title. :)

1 solution

Finally I found the solution by myself. By mistake I didn't dispose some of the objects when closing the form. Now it's fine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900