At 22:41 2004-10-21, Glenn Linderman wrote:
Sounds strange. And does this new/DESTROY happen frequently only after the main window disappears, or all through the execution of the code? And I don't know if DC's are subject to the cascading destruction of their parent window?
There is a DC created and destroyed when painting the Design window. But that seems to work ok.
[Not re-creating it if possible sounds like a good optimization btw. Painting the window is kind of slow]
Then when I close a preview window the warnings start. I suspect it has something to do with the paint event, but I'll investigate further. Maybe the DC object isn't created properly or something.
/J -------- ------ ---- --- -- -- -- - - - - - Johan Lindström Sourcerer @ Boss Casinos johanl AT DarSerMan.com Latest bookmark: "TCP Connection Passing" http://tcpcp.sourceforge.net/ dmoz: /Computers/Programming/Languages/JavaScript/ 12