Re: Graphics "goes away" - New Information




"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


.



Relevant Pages

  • Re: Graphics "goes away" - New Information
    ... When it stops, ... Going back to my original thought on the GDI resource leak, do you draw all ... You mentioned that you were doing the drawing in the WM_PAINT. ... after about 75 lines it stops showing the lines. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: New Fares
    ... > There is no need to make the whole of London prepaid only, ... > well-used stops. ... sure there will be stops without machines plus of course lengthy sections ... to have a valid ticket, pass or prepay in hand before boarding. ...
    (uk.transport.london)
  • Re: New Fares
    ... > introduction at strategic stops. ... There is no need to make the whole of London prepaid only, ... stops that had machines would be prepaid-only, ... Why allow people to buy tickets on a 144 or W3 at a stop that has a ticket ...
    (uk.transport.london)
  • Re: New Fares
    ... >> There is no need to make the whole of London prepaid only, ... >> well-used stops. ... > sure there will be stops without machines plus of course lengthy sections ... > to have a valid ticket, pass or prepay in hand before boarding. ...
    (uk.transport.london)
  • Magnetic Data Technology hard drives
    ... it ran to 109kb stops tells me ... DMA CROSSES 64K BOUNDRY.... ... tried this on 2 xp machines both nvida boards ...
    (microsoft.public.windowsxp.general)