Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #9327

Re: GDI Objects creeping up

Subject Re: GDI Objects creeping up
From Camille Kater <katercam@pt.lu>
Date Thu, 5 May 2016 09:52:42 +0200
Message-ID <1462429025_1@vo.lu> (permalink)
References <nga8uu$n54$2@dont-email.me> <nqejibh2atflb7j8klqdmgc5sdfecsjh6j@4ax.com> <ngchkd$h49$1@dont-email.me> <d25kib951f5n3vmffkpsivovkgl5km3p55@4ax.com> <nge7vm$bld$1@news.albasani.net>
Lines 50
NNTP-Posting-Host 83.99.28.240
Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!news.vo.lu!not-for-mail
Newsgroups comp.lang.clipper.visual-objects
X-Trace vo.lu 1462429025 83.99.28.240 (5 May 2016 08:17:05 0200)
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
MIME-Version 1.0
In-Reply-To <nge7vm$bld$1@news.albasani.net>
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
Xref csiph.com comp.lang.clipper.visual-objects:9327

Show key headers only | View raw


Hi Jamal,

In the auto-generated init() method of the painted class you will often 
find the following code:

example:
Method init(oWindow,iCtlID,oServer,uExtra) CLASS MyWindow
LOCAL DIM aFonts[3] AS OBJECT
LOCAL DIM aBrushes[1] AS OBJECT

SELF:PreInit(oWindow,iCtlID,oServer,uExtra)

SUPER:Init(oWindow,ResourceID{"MyWindow",_GetInst()},iCtlID)

aFonts[1] := Font{,8,"MS Sans Serif"}
aFonts[1]:Bold := TRUE
aFonts[2] := Font{,8,"Microsoft Sans Serif"}
aFonts[2]:Bold := TRUE
aFonts[3] := Font{,10,"Microsoft Sans Serif"}
aFonts[3]:Bold := TRUE
aBrushes[1] := Brush{Color{157,191,255}}
....

My understanding is: As you deal here with arrays, they go out of scope
upon closing this class.

Camille


On 05/05/16 03:34, Jamal Assaf wrote:
> Hi Benito,
>
> I have not read any posts that DIM itself make objects go out of scope
> upon returning from a method. May be you could point out where you read
> this info.

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

GDI Objects creeping up Martin <Martin@spam.spam> - 2016-05-03 14:30 +0100
  Re: GDI Objects creeping up "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2016-05-04 08:58 +0200
    Re: GDI Objects creeping up Martin <Martin@spam.spam> - 2016-05-04 09:07 +0100
    Re: GDI Objects creeping up Martin <Martin@spam.spam> - 2016-05-04 11:05 +0100
  Re: GDI Objects creeping up Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2016-05-04 11:21 +0200
    Re: GDI Objects creeping up Martin <Martin@spam.spam> - 2016-05-04 11:10 +0100
      Re: GDI Objects creeping up Benito Fernández Meneses <bfernandez@bfmconsultores.com.mx> - 2016-05-04 10:29 -0500
        Re: GDI Objects creeping up "Jamal Assaf" <someone@example.com> - 2016-05-04 21:34 -0400
          Re: GDI Objects creeping up Camille Kater <katercam@pt.lu> - 2016-05-05 09:52 +0200
          Re: GDI Objects creeping up Otto Christiaanse <ofchristiaanse@gmail.com> - 2016-05-05 03:47 -0700
            Re: GDI Objects creeping up "Jamal Assaf" <someone@example.com> - 2016-05-07 13:09 -0400
              Re: GDI Objects creeping up "Jamal Assaf" <someone@example.com> - 2016-05-08 00:50 -0400
                Re: GDI Objects creeping up Otto Christiaanse <ofchristiaanse@gmail.com> - 2016-05-17 02:33 -0700
        Re: GDI Objects creeping up Martin <Martin@spam.spam> - 2016-05-05 09:37 +0100
  Re: GDI Objects creeping up "Jamal Assaf" <someone@example.com> - 2016-05-07 13:12 -0400

csiph-web