Dear friends,

I'm stumped. The application I'm writing has a document window whose super
is Window. It has some buttons, an edit field, pop-up menus, and scroll bars
on it, but nothing unusual.

The problem is, after this window opens it gets hundreds (or thousands) of
Paint events, and I can't figure out why. Even if I'm doing nothing with the
application, the Paint events keep coming. My first thought was that
something in my Paint code was changing the value of a control, which in
turn triggered a paint event, but even if I comment out all of the code in
my Paint method, the events keep coming.

I tried tracing the code with the debugger, and when it exits the Paint
method, the next step is right at the top of the Paint event again.

I've added System.DebugLog statements to all of my Event methods (except for
mouse events), and none of them are being fired after the obvious ones like
App.Open, Document.Open, etc.

I have a Timer control, but no active code in it, not even initialization
code.

Does anybody have any suggestions for what kinds of things could cause this
kind of behavior? I can't debug my application as it stands now, because all
it does is try to refresh itself...:(

Thanks - and Happy New Year!

- John McKernon


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to