tTime() bug

tTime() bug

Postby ralph » Wed Feb 15, 2006 3:15 pm

Antonio:

esta linea funciona bien hasta FWH 2.6 + xHb 09950

oTime1 := TTime():System()


Pero al compilarlo con FWH 2.7 (jan) + xHb 09951
me da el siguiente error en tiempo de ejecucion :

Application
===========
Path and name: C:\DemoSistemas\Protwin\gestwinx.Exe (32 bits)
Size: 3,494,400 bytes
Time from start: 0 hours 2 mins 38 secs
Error occurred at: 15/02/2006, 09:26:30
Error description: Error BASE/1605 Invalid self: SYSTEM
Args:
[ 1] = O Object
[ 2] = U

Stack Calls
===========
Called from: TIME.PRG => TTIME:SYSTEM(0)
Called from: costprom.prg => COSTPROM(22)
Called from: => (b)BUILDMENU(390)
Called from: MENU.PRG => TMENU:COMMAND(0)
Called from: WINDOW.PRG => TWINDOW:COMMAND(0)
Called from: MDIFRAME.PRG => TMDIFRAME:COMMAND(0)
Called from: WINDOW.PRG => TMDIFRAME:HANDLEEVENT(0)
Called from: WINDOW.PRG => _FWH(0)
Called from: => WINRUN(0)
Called from: WINDOW.PRG => TMDIFRAME:ACTIVATE(0)
Called from: wgest.prg => MAIN(182)


Puedes ayudarme?

Ralph
User avatar
ralph
 
Posts: 79
Joined: Fri Nov 18, 2005 11:15 pm
Location: Lima - PERU

Postby Antonio Linares » Wed Feb 15, 2006 6:13 pm

Ralph,

Modifica la Clase TTime para que el método New y System devuelvan Self:

...

return Self // en vez de return nil

Con ese cambio, samples\TestTim2.prg funciona correctamente con Harbour/xharbour.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby ralph » Wed Feb 15, 2006 8:35 pm

Gracias Antonio:

funciono!

Ralph
User avatar
ralph
 
Posts: 79
Joined: Fri Nov 18, 2005 11:15 pm
Location: Lima - PERU


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 54 guests