EXCESS RELEASE OF FONT - oFonte:End()

Post Reply
MGA
Posts: 1258
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

EXCESS RELEASE OF FONT - oFonte:End()

Post by MGA »

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
Last edited by MGA on Thu Jun 08, 2017 6:22 pm, edited 2 times in total.
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
User avatar
vilian
Posts: 985
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: EXCESS RELEASE OF FONT - oFonte:End()

Post by vilian »

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
MGA
Posts: 1258
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Re: EXCESS RELEASE OF FONT - oFonte:End()

Post by MGA »

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
User avatar
vilian
Posts: 985
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: EXCESS RELEASE OF FONT - oFonte:End()

Post by vilian »

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
MGA
Posts: 1258
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Re: EXCESS RELEASE OF FONT - oFonte:End()

Post by MGA »

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
User avatar
vilian
Posts: 985
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: EXCESS RELEASE OF FONT - oFonte:End()

Post by vilian »

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
MGA
Posts: 1258
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Re: EXCESS RELEASE OF FONT - oFonte:End()

Post by MGA »

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
User avatar
vilian
Posts: 985
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: EXCESS RELEASE OF FONT - oFonte:End()

Post by vilian »

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
MGA
Posts: 1258
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Re: EXCESS RELEASE OF FONT - oFonte:End()

Post by MGA »

Obrigado Vilian.
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: EXCESS RELEASE OF FONT - oFonte:End()

Post by nageswaragunupudi »

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
MGA
Posts: 1258
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Re: EXCESS RELEASE OF FONT - oFonte:End()

Post by MGA »

Thanks MR.Nages :D
ubiratanmga@gmail.com

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