Page 1 of 1

CreateObject() : clean-up ?

Posted: Tue Feb 18, 2020 3:11 am
by AUGE_OHR
hi,

i use CreateObject() but there seem not o:Destroy() to clean-up :o

so how to clean-up COM Object under harbour / HMG :idea:

Re: CreateObject() : clean-up ?

Posted: Tue Feb 18, 2020 7:59 am
by gfilatov
AUGE_OHR wrote: Tue Feb 18, 2020 3:11 am hi,

i use CreateObject() but there seem not o:Destroy() to clean-up :o

so how to clean-up COM Object under harbour / HMG :idea:
Hi,

The following clean up in your code is enough :arrow:

Code: Select all

      // clean-up ActiveX
      oVerbs := NIL
      oFolder := NIL
      oShell := NIL
      WshShell := NIL

Re: CreateObject() : clean-up ?

Posted: Tue Feb 18, 2020 9:46 pm
by AUGE_OHR
gfilatov wrote: Tue Feb 18, 2020 7:59 am The following clean up in your code is enough :arrow:

Code: Select all

      // clean-up ActiveX
      oVerbs := NIL
      oFolder := NIL
      oShell := NIL
      WshShell := NIL
OK, thx

Re: CreateObject() : clean-up ?

Posted: Fri Mar 13, 2020 3:14 pm
by Mario Mansilla
Hola Gregory :
este procedimiento que mencionas se realiza automaticamente cuando usas un objeto activex desde el ide con el control Activex dentro de un form ?
Como te das cuenta que el objeto queda en memoria ?

Saludos
Mario Rafael Mansilla

Hello Gregory:
This procedure you mention is done automatically when you use an activex object from the ide with the Activex control inside a form?
How do you realize that the object remains in memory?

regards
Mario Rafael Mansilla