Search found 59 matches: destructor

Return to advanced search

Re: create a function with Tdatabase

Silvio,

Class TDataBase has a destructor method, so when the object gets out of scope then it gets called

change local oDbf into static oDbf (or keep it in an array) so the object is not destroyed
by Antonio Linares
Sat Apr 24, 2021 11:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: create a function with Tdatabase
Replies: 7
Views: 1183

Re: Inicio con SQlite3 y hbsqlit3.lib

Gracias Joao Muy interesante , le hechare un vistazo tranquilamente. por cierto he descubierto las funciones de la lib y he conseguido compilar, pro si a alguien le interesa las libs a incluir son hbsqlit3.lib pero tambien sqlite3.lib el include #include "..\contrib\hbsqlit3\hbsqlit3.ch" l...
by jvtecheto
Mon Feb 22, 2021 6:32 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Inicio con SQlite3 y hbsqlit3.lib
Replies: 3
Views: 356

Re: New FTDN November 2018 (FWH 18.11)

... versiones anteriores, esta característica solo estará disponible si oCol: lMultiRowEdit está establecido en .T. * TDataRow: - Modificado el método destructor para la compatibilidad con xHarbour para la deivación de clases en TDatarow. * edit.prg: Corregido error en el método VarPut() viewtopic.php?f=3&t=36364 ...
by Antonio Linares
Thu Dec 27, 2018 4:57 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN November 2018 (FWH 18.11)
Replies: 1
Views: 2165

New FTDN November 2018 (FWH 18.11)

... rows. With a view to keep backward compatibility this feature is made available only if oCol:lMultiRowEdit is set to .t. * TDataRow: - Modified destructor method for compatibility with xHarbour for derivation of classes from TDatarow * edit.prg: Bug fix in method VarPut() http://forums.fivetechsupport.com/viewtopic.php?f=3&t=36364 ...
by Antonio Linares
Sat Dec 01, 2018 10:46 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN November 2018 (FWH 18.11)
Replies: 1
Views: 2165

TDatabase FWH 17.08 : Datas and Methods

... in the window. If oWnd is nil, XBrowser is used. 99. Zap() Zaps() all records. Fails if dbf is opened as shared or readonly. 100. td_Destroy() DESTRUCTOR This method calls ::Close() method. This method should not be called directly in the application and it is called by (x)Harbour when all ...
by nageswaragunupudi
Fri Sep 15, 2017 12:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase FWH 17.08 : Datas and Methods
Replies: 1
Views: 1792

Re: Database - 17.07 - Problems

James,

I do not understand well... if I use Tdatabase 17:06 or earlier, there is no destructor and there has never occurred an error...
by Diego Decandia
Wed Sep 06, 2017 2:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Database - 17.07 - Problems
Replies: 84
Views: 12060

Re: Database - 17.07 - Problems

Mr. Rao,

Unfortunately, I too have the same error as before, if I modify the Close method and keep the destructor...
by Diego Decandia
Wed Sep 06, 2017 12:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Database - 17.07 - Problems
Replies: 84
Views: 12060

Re: Database - 17.07 - Problems

... the Close() or End() method is called and this solves the problem. At least it appears to be in my testing. I shall be discussing in detail about DESTRUCTOR methods and how they work and what is the purpose and benefits of td_Destroy soon. For now, let me say that a DESTRUCTOR method is called ...
by nageswaragunupudi
Tue Sep 05, 2017 2:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Database - 17.07 - Problems
Replies: 84
Views: 12060

Re: Database - 17.07 - Problems

I tested the code posted by Mr Diego Decandia on Aug 25th and seen the problem. It is also true we do not see the problem if we remove the DESTRUCTOR method td_Destroy(). But removal of this method is not the right solution. This method did not create a new problem. In fact it brought to light ...
by nageswaragunupudi
Sun Sep 03, 2017 3:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Database - 17.07 - Problems
Replies: 84
Views: 12060

Re: Database - 17.07 - Problems

Antonio,

Done. No errors.

Antonio Linares wrote:ok, thanks, in Class TDataBase remove this line:

// DESTRUCTOR td_destroy()

Also comment out this code:
/*
PROCEDURE td_destroy() CLASS TDataBase

::End()

RETURN
*/
by Diego Decandia
Fri Sep 01, 2017 5:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Database - 17.07 - Problems
Replies: 84
Views: 12060

Re: Database - 17.07 - Problems

ok, thanks, in Class TDataBase remove this line:

// DESTRUCTOR td_destroy()

Also comment out this code:
/*
PROCEDURE td_destroy() CLASS TDataBase

::End()

RETURN
*/
by Antonio Linares
Fri Sep 01, 2017 4:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Database - 17.07 - Problems
Replies: 84
Views: 12060

Re: Database - 17.07 - Problems

with x++ I get >>>Error BASE/1003 Variabile inesistente: X Errore avvenuto il 01/09/17, alle 18:54:58 PC: 'DIEGO-HP', Operatore: DIEGO Tempo dallo start: 0 hours 0 mins 7 secs Chiamato da: C:\fwh\source\classes\database.prg => TDATABASE:__DESTRUCTOR( 1360 ) Chiamato da: => TDATABASE:C...
by Diego Decandia
Fri Sep 01, 2017 4:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Database - 17.07 - Problems
Replies: 84
Views: 12060

Re: Database - 17.07 - Problems

... it doesn't end the object and TD_Destroy does nothing. TD_Destroy is NOT being called in the object. The definition in the Class definition is: DESTRUCTOR td_destroy() So apparently it is being called outside the class somewhere. James
by James Bott
Fri Sep 01, 2017 2:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Database - 17.07 - Problems
Replies: 84
Views: 12060

New FTDN July 2017 (FWH 17.07)

... oRec ) } ) for user edit instead of default edit procedure. - Enhancement: Method SqlQuery() uses VFPOLEDB is installed for DBFCDX. - Added DESTRUCTOR method. oDbf := nil closes table and connections. * MENUS - Fixed: increase font resources - Updated function GetnHeightItem(): value initial ...
by Antonio Linares
Sun Aug 13, 2017 8:19 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN July 2017 (FWH 17.07)
Replies: 5
Views: 2987

TDatabase class WIKI

... oRec ) } ) for user edit instead of default edit procedure. - Enhancement: Method SqlQuery() uses VFPOLEDB is installed for DBFCDX. - Added DESTRUCTOR method. oDbf := nil closes table and connections.
by nageswaragunupudi
Wed Aug 02, 2017 7:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase class WIKI
Replies: 4
Views: 760
Next

Return to advanced search