Ken Takata wrote:

> 2010/10/12 Tue 15:46:39 UTC+9 Sergey Khorev:
> > Christian Brabandt <cblists <at> 256bit.org> writes:
> > 
> > > I see that on Windows XP with Vim 7.2.284 after approximately 20000
> > > iterations. But what is really weird is, that the whole gui is broken
> > > afterwards. The window is not redrawn correctly afterwards and when typing
> > > the letters appear in the root window (e.g. it looks like I am typing
> > > on the Desktop of Windows itsself) and all different artifacts are drawn
> > > on the screen. Even after quitting vim, I still see some artifacts.
> > > Very weird.
> > 
> > It's not weird, these are symptoms of the same problem: Vim leaks GUI 
> > resources 
> > (you can enable monitoring of GDI objects in task manager and see them 
> > increasing until they reach 10000). Apparently Vim creates new font for 
> > each 
> > iteration and does not destroy created fonts.
> 
> I think I found the cause of this resource leak problem.
> The leak occurs in hl_do_font() (syntax.c).
> Attached patch fixes the problem. I tested it on Windows 7 and
> bug.vim worked fine.
> 
> (Sorry if I posted this message twice.)

Thanks for the patch.  I'll check it out.

-- 
BLACK KNIGHT: I'm invincible!
ARTHUR:       You're a looney.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui