Re: Graphics "goes away" - New Information
- From: "jw" <jw@xxxxxxxxxxxxx>
- Date: Tue, 24 May 2005 03:12:31 GMT
"Chris Burnette" <burnette@xxxxxxxxxxxxxxxxxx> wrote in message
news:ejfxt9$XFHA.2508@xxxxxxxxxxxxxxxxxxxxxxx
> When it stops, does it stop forever (ie... minimizing / restoring the
dialog
> causes it to not redraw)? If so, this would allow you to place a debug the
> code and place a breakpoint in it when the problem occurs.
>
The code does not stop. The only thing that stops is the lines do not
display.
> Does this happen just on the one machine or does it happen on other
machines
> as well? Could it be an issue with the video card driver?
It happens on all machines.
>
> Going back to my original thought on the GDI resource leak, do you draw
all
> of the lines with the same pen or are you selecting / deselecting
different
> pens per line? Do you deselect and delete the pen at the end of the
drawing
> operation?
>
The Task Manager shows no resource leaks.
> You mentioned that you were doing the drawing in the WM_PAINT. Is this
where
> the calculations to determine the points are occurring also? Could you
> precalculate the points and simply draw them in WM_PAINT (this would speed
> up the drawing)?
The points are calculated in WM_PAINT. It would take 1000 * 120 * 2 points.
I will have to think about that.
>
> Is there anyway you can post a code snippet of your WM_PAINT?
Not in its present configuration. The calculations are spead over dozens of
functions.
JW
.
- Follow-Ups:
- Re: Graphics "goes away" - New Information
- From: Chris Burnette
- Re: Graphics "goes away" - New Information
- References:
- Graphics "goes away"
- From: jw
- Re: Graphics "goes away" - New Information
- From: jw
- Re: Graphics "goes away" - New Information
- From: Chris Burnette
- Graphics "goes away"
- Prev by Date: Re: Graphics "goes away" - New Information
- Next by Date: problem about the "TEXTMETRIC" struct?
- Previous by thread: Re: Graphics "goes away" - New Information
- Next by thread: Re: Graphics "goes away" - New Information
- Index(es):
Relevant Pages
|