FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour EXCESS RELEASE OF FONT - oFonte:End()
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
EXCESS RELEASE OF FONT - oFonte:End()
Posted: Thu Jun 08, 2017 05:27 PM

In a window at the end of the font the system is creating log.

NOTE: The problem only happens if you press the ESC KEY on WINDOW.

08/06/2017 14:09:00: EXCESS RELEASE OF FONT Lucida Console[ hFont : 0] ( nCount : 0 )
<-TFONT:END(284) <-VALID_MESA(72) <-(b)EVAL(63) <-(b)MSGRUN(37) <-(b)TDIALOG(95) <-TDIALOG:DISPLAY(0) <-TDIALOG:HANDLEEVENT(901) <-DIALOGBOXINDIRECT(0) <-TDIALOG:ACTIVATE(296)
------------------------------------------------------------

oFonteBotao := TFont():New('Lucida Console' , -0, -12,.f.,.f.)

define window s_oWndMesas title '.:: Mesas ::.' mdichild of M->oWnd vscroll

@ 10,10 BTNBMP aMesas[n] OF s_oWndMesas ;
TOP SIZE 100,100 ;
PROMPT cDescricao 2007 ;
RESOURCE MESA_FECHADA ;
FONT oFonteBotao
ACTION ( MSGINFO('TESTE') ) ;
PIXEL

activate window s_oWndMesas maximized on init(On_Init( oTimer ));
valid(ValidWindow( oFonteBotao), .t. )

return

/************/
static procedure ValidWindow( oFonteBotao )
/

/
oFonteBotao:End()
HB_GCALL(.t.)
return

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: EXCESS RELEASE OF FONT - oFonte:End()
Posted: Thu Jun 08, 2017 05:39 PM
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: EXCESS RELEASE OF FONT - oFonte:End()
Posted: Thu Jun 08, 2017 06:11 PM

Vilian,

your link returns to this same post, I just add that I'm working with a WINDOW and not a DIALOG.

NOTE: The problem only happens if you press the ESC KEY on WINDOW.

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: EXCESS RELEASE OF FONT - oFonte:End()
Posted: Thu Jun 08, 2017 06:25 PM
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: EXCESS RELEASE OF FONT - oFonte:End()
Posted: Thu Jun 08, 2017 06:48 PM

Villian,

The problem happens when you press ESC on a WINDOW. If I close the window by X it works fine.

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: EXCESS RELEASE OF FONT - oFonte:End()
Posted: Thu Jun 08, 2017 07:02 PM
SGS,

Look at your code and search for thinks like oObj:oFont := oFont
You must replace it for oObj:SetFont( oFont ) or use its FONT clause.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: EXCESS RELEASE OF FONT - oFonte:End()
Posted: Thu Jun 08, 2017 07:17 PM

Vilian,

oFonteBotao: = TFont (): Novo ('Lucida Console', -0, -12, .f.,. F.)

Define janela s_oWndMesas tĂ­tulo '. :: Mesas ::.' Mdichild de M-> oWnd vscroll

@ 10,10 BTNBMP aMesas [n] OF s_oWndMesas;
TOP TAMANHO 100,100;
PROMPT cDescricao 2007;
RECURSO MESA_FECHADA;
FONT oFonteBotao
ACTION (MSGINFO ('TESTE'));
PIXEL

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: EXCESS RELEASE OF FONT - oFonte:End()
Posted: Thu Jun 08, 2017 07:34 PM

SGS,

IF your program is creating a .log file with this message, certainly you have what I wrote in my previous message in somewhere(Eg: Other functions, etc). Fix it and .log file will not be created.

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: EXCESS RELEASE OF FONT - oFonte:End()
Posted: Thu Jun 08, 2017 09:14 PM

Obrigado Vilian.

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: EXCESS RELEASE OF FONT - oFonte:End()
Posted: Fri Jun 09, 2017 09:37 AM

do not end font in timers or valid clauses.

What you need to do after the end of MDICHILD, do it in oWnd:bPostEnd

Regards



G. N. Rao.

Hyderabad, India
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: EXCESS RELEASE OF FONT - oFonte:End()
Posted: Sat Jun 10, 2017 12:52 PM

Thanks MR.Nages :D

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin

Continue the discussion