Stuck on infinite loop

  • Thread starter Thread starter Rene
  • Start date Start date
R

Rene

I got stuck on an infinite loop on the "Paint" event of my custom control
and I was not able to "ctrl-break" my way out of it.

After trying everything, I had to ctrs-alt-delete to shut down the
application and delete the bin and obj folders of the control so that the
application could start without locking.

I don't understand? I am pretty sure I was able to press ctrl-break before
and it would stop on the offending line. Could this be a problem with the
Paint event? I was also not able to set break points on that event (paint)
because they are ignored.

Has anybody had similar problems? Thanks.
 
post your code then we'll see.

a possible reason could be that you called Refresh() or this.OnPaint() in
the OnPaint method.
 
Back
Top