Results 1 to 5 of 5

Thread: autoredraw error

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    autoredraw error

    Hi

    Why would I get an error stating "Unable to create object autoredraw for picIrCut" from vb? picIrCut is a hidden autoresize picbox that holds a bmp from the clipboard for the purpose of getting a cut pic's dimentions before displaying on existing form through bitblit. This picbox worked fine a week ago but since then I added a few more hidden autoresizing, autoredrawing picboxs and now I get that error.

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Is it a specific line of code you get the error on???

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Unhappy Is it possible I have run out of handles???

    Yes, when I call the result of the property in any way:

    ex:
    msgbox picIrCut.hdc
    or
    picIrCut.picture = picIrCut.image

    Is it possible I have run out of handles???
    Is there a certain amount of autoredraw objects available???
    This is really bad.

  4. #4
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I think that handels are of type Long, so you probably are not out of handles....

    BTW this is probably a stupid question but do you have the HasDC property to true on the picture box....I'm not sure if that has anything to do with it...but just check it...

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Angry

    Control is identical to others with same functionality except for the name. The error was 340 (I think) I went to help on it and found that VB thinks it's a memory issue but it's not (resources read 55,55,56). I deleted everything but this control, reran it and again it was toast. I created a new control as well and it was able to autoredraw. I'll chaulk it up to a bug or corruption of some sort and make a new control with a new name.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width