G
Gary Brown
Hi,
I have a computation intensive application that tries to
update the display quite often. After a few seconds the
window stops updating and the window goes blank. A
breakpoint in the Paint event doesn't trigger.
Further, if another window obscures the display while it
is still working the display is blank after it is uncovered.
Also, when the window is blank, the program does not
respond to the keyboard.
I am not entirely sure what is happening. I am also not
sure what other information to provide.
Any advice appreciated.
FWIW: This is a PDP-1 (an early computer, for you yungins)
simulation. The console lights are updated after each
instruction. The computations proceed as expected but
the display disappears after a few seconds. I can turn the
console light update off in which case I see the second
problem when switching windows. I can also slow the
update down to every 1000 instructions (because the
console update dominates the execution time but you still
want to see blinking lights!). That can yield either of the
above symptoms, seemingly at random.
Diddling with Refresh didn't help. Because the update
does dominate I am trying to avoid Refresh and Invalidate
as much as possible.
Gary
I have a computation intensive application that tries to
update the display quite often. After a few seconds the
window stops updating and the window goes blank. A
breakpoint in the Paint event doesn't trigger.
Further, if another window obscures the display while it
is still working the display is blank after it is uncovered.
Also, when the window is blank, the program does not
respond to the keyboard.
I am not entirely sure what is happening. I am also not
sure what other information to provide.
Any advice appreciated.
FWIW: This is a PDP-1 (an early computer, for you yungins)
simulation. The console lights are updated after each
instruction. The computations proceed as expected but
the display disappears after a few seconds. I can turn the
console light update off in which case I see the second
problem when switching windows. I can also slow the
update down to every 1000 instructions (because the
console update dominates the execution time but you still
want to see blinking lights!). That can yield either of the
above symptoms, seemingly at random.
Diddling with Refresh didn't help. Because the update
does dominate I am trying to avoid Refresh and Invalidate
as much as possible.
Gary