Search:

Type: Posts; User: sammy74

Search: Search took 0.02 seconds.

  1. Replies
    9
    Views
    1,191

    VS 2015 Re: Only works 4 times

    That was a good catch! This was the problem, it was easy to see after you explained it :)

    Thank you, it is working fine now.
  2. Replies
    9
    Views
    1,191

    VS 2015 Re: Only works 4 times

    If I don't clone the "bm" I will not be able to make any changes to "bm" the 2nd time I run the function. It will be locked in the "PictureBox" object.

    BTW If I comment out the line where I clone...
  3. Replies
    9
    Views
    1,191

    VS 2015 Re: Only works 4 times

    If I remove the disposing of the picturebox it will crash the 2nd time I run the it.
  4. Replies
    9
    Views
    1,191

    VS 2015 Re: Only works 4 times

    I tried to comment out PaintCScan (pixels) and it does not crash.

    I have also stepped through the code:

    It is crashing when "PictureBox1.Image = bm.Clone" is executed the 5th time. It always...
  5. Replies
    9
    Views
    1,191

    VS 2015 [RESOLVED] Only works 4 times

    I have some code to update a picturebox. To speed up the process I'm using LockBits.

    The code works the 4 first times I push the button, then I get a windows error (vshot32.exe has stopped...
Results 1 to 5 of 5



Click Here to Expand Forum to Full Width