Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #9327
| Subject | Re: GDI Objects creeping up |
|---|---|
| From | Camille Kater <katercam@pt.lu> |
| Date | 2016-05-05 09:52 +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> |
| Newsgroups | comp.lang.clipper.visual-objects |
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
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