Error Happens Once
- From: "Ivar" <ivar.ekstromer000@xxxxxxxxxxxx>
- Date: Sun, 23 Apr 2006 20:34:52 GMT
Hi All.
I have a project (VB6 WinXP) with lots of forms and a user control. Not all,
but some of the forms have one or more usercontrols on them. Everything on
the user control is drawn on to it, it is not the container for other
controls and it's AutoDraw is set to true.
I get "Runtime Error 480, Can't create AutoRedraw Image". But It only ever
happens once when The control needs to be drawn, in Run or design mode. When
the project (in VB) starts there is no problem until I go to the design view
of a form with a usercontrol on it, then I get the error, I click "End" and
that's the last time the error will appear until I shut down VB. Once the
error has appeared it never happens again. If I shut down VB, then open it
without opening a forms design and try to compile the error will happen,
click "End" then I can compile with out problem.
The "Image" size is quite small, only about 20 X 50 pixels so no probs
there.
Forgot to mention, the 'Crash' happens on a line of code that draws
something on the usercontrol, either BitBlt or the UserControls Line method.
The two things I can't figure out are:
Why the error happens in the first place when the image to draw is so small,
and why only once per opening the project.
Is this some kind of bug in VB that I have hit?
Any ideas
Ivar
.
- Follow-Ups:
- Re: Error Happens Once
- From: Mike Williams
- Re: Error Happens Once
- From: Mike Williams
- Re: Error Happens Once
- Prev by Date: Re: User Control Problem
- Next by Date: Question from a clueless newbie
- Previous by thread: Re: VB6 ADO and Sort
- Next by thread: Re: Error Happens Once
- Index(es):
Relevant Pages
|