From: "Gate" Subject: Is This Right ? Date: 13 Jun 1999 00:00:00 GMT Message-ID: <7k0qcs$fo515@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.delphi.graphics var DC: HDC; begin DC := GetWindowDC(Handle); try {do somthing ......} finally ReleaseDC(Handle, DC); end; end; is this the right method to allocate and release the DC without causing GDI Leak ? Thanx