[PATCH]QT_WIN32_3_3_BRANCH-GDI Leak
REGAT-BARREL Aurélien
arbvtk at yahoo.fr
Sun Dec 12 20:26:51 CET 2004
Hi,
This is my first post to this ml so excuse me if I am doing something wrong :-)
I downloaded and tried qt-3 QT_WIN32_3_3_BRANCH. It quickly appeared that there was a problem with painting. I ran GDI leaks detection tools and found a problem with pens. The problem is in kernel/qpainter_win.cpp, line 2887:
HPEN pen = CreatePen (PS_SOLID, 1, RGB (0, 0, 0));
SelectObject (hdc, hpen);
note the use of pen with CreatePen and hpen with SelectObject. I simply removed this 2 lines, and it works better now.
I hope this helps.
Regards.
Aurélien REGAT-BARREL
My VTK blog : http://aurelien_regat-barrel.blogspot.com
---------------------------------
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail
Avec Yahoo! faites un don et soutenez le Téléthon !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-cygwin/attachments/20041212/5f15b8a1/attachment.html
More information about the kde-cygwin
mailing list