Memory leak with last xbrowse

Re: Memory leak with last xbrowse

Postby nageswaragunupudi » Tue Jan 04, 2011 2:57 pm

Marco Turco wrote:Great !! Adding oFld:SetFont( oWnd:oFont ) all seem to runs well (tested on 1000 open/close).

Do you think could it be possible to fix directly the tFolder class (or the FWH class related to the problem) ?

Can you kindly take the additional trouble of testing this change with the older version of FWH and see if font resources remain unreleased?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Memory leak with last xbrowse

Postby Marco Turco » Tue Jan 04, 2011 3:14 pm

Hi Rao,
it isn't very clear what you mean.
With FWH oct 2009 all runs well with or without the oFld:Setfont(oWnd:oFont) addition.
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Memory leak with last xbrowse

Postby James Bott » Tue Jan 04, 2011 5:48 pm

Andre,

The code below seems to work fine. There is no bold font and there is no memory leak. So there must be something in your code causing the problem.

Regards,
James

Code: Select all  Expand view
#include "fivewin.ch"

function main()
   local oWnd,oBtn

   define window oWnd
   @1,1 button oBtn action consultas()
   activate window oWnd

   FERASE("CHECKRES.TXT")
   CHECKRES()
    winExec("notepad .\checkres.txt")
return nil

FUNCTION Consultas()
   LOCAL oFnt, oDlg
   DEFINE FONT oFnt NAME "Ms Shell Dlg" SIZE 0, -10
   DEFINE DIALOG oDlg OF wndMain() FONT oFnt
   @ 1,1 say "test font" of oDlg
   ACTIVATE DIALOG oDlg
   oDlg := NIL
   oFnt:end()
RETURN ( NIL )
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Memory leak with last xbrowse

Postby ADutheil » Wed Jan 05, 2011 2:09 pm

James,

With your sample I found something interesting: if I add @1,1 button oBtn action NIL to the main window of my app the problem goes away!

Andre
Regards,

André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 89 guests