EXCESS RELEASE OF FONT - oFonte:End()

EXCESS RELEASE OF FONT - oFonte:End()

Postby MGA » Thu Jun 08, 2017 5: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
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
MGA
 
Posts: 1254
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

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

Postby vilian » Thu Jun 08, 2017 5:39 pm

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

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

Postby MGA » Thu Jun 08, 2017 6: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
MGA
 
Posts: 1254
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

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

Postby vilian » Thu Jun 08, 2017 6:25 pm

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

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

Postby MGA » Thu Jun 08, 2017 6: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
MGA
 
Posts: 1254
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

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

Postby vilian » Thu Jun 08, 2017 7: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
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

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

Postby MGA » Thu Jun 08, 2017 7: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
MGA
 
Posts: 1254
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

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

Postby vilian » Thu Jun 08, 2017 7: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
User avatar
vilian
 
Posts: 978
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

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

Postby MGA » Thu Jun 08, 2017 9:14 pm

Obrigado Vilian.
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1254
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

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

Postby nageswaragunupudi » Fri Jun 09, 2017 9: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
User avatar
nageswaragunupudi
 
Posts: 10663
Joined: Sun Nov 19, 2006 5:22 am
Location: India

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

Postby MGA » Sat Jun 10, 2017 12:52 pm

Thanks MR.Nages :D
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1254
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Danielmaximiliano, Google [Bot] and 44 guests