|
-
Dec 9th, 2002, 01:35 PM
#1
Thread Starter
Hyperactive Member
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.
-
Dec 9th, 2002, 01:58 PM
#2
Is it a specific line of code you get the error on???
-
Dec 9th, 2002, 05:55 PM
#3
Thread Starter
Hyperactive Member
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.
-
Dec 9th, 2002, 05:58 PM
#4
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...
-
Dec 10th, 2002, 12:45 PM
#5
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|