ENFIN Memory Leak 
Author Message
 ENFIN Memory Leak

I am taking an Software Engineering course that is using ENFIN Smalltalk
(I wasn't able to get it to tell me the version number but its last
modification date is Monday November 14th, 1994.  I think its 4.1 or 4.10
or something).  In the course of working on my groups project, I have
found what appears to be a {*filter*} little bug.

When you create a form and put a multi-line entry field in it, whenever
you putValue: a new value into it, there is a memory leak involving
the 64k GDI memory.  Turn off multi-line capability in the entry field,
the leak disappears.  After a while, you fill up the GDI memory and bad
things happen.

Problem occurs under Windows 3.1 and Win95.

the following cls file demonstrates this problem:

section 1/1   file t.cls   [ Wincode v2.6.1 ]

begin 644 t.cls
<uuencoded_portion_removed>
$:R(-"B(-
`
end
sum -r/size 31968/1714

section 1/1   file t.cls   [ Wincode v2.6.1 ]
--
============================================================================



Wed, 07 Oct 1998 03:00:00 GMT  
 ENFIN Memory Leak
Hi Geoffrey,

Try to help you but cannot read your t.cls file

Quote:
>section 1/1   file t.cls   [ Wincode v2.6.1 ]
>begin 644 t.cls

>M8V5687)I86)L94YA;65S.B`G#0H)8G5T=&]N,0T*"6-O=6YT#0H)968-"B<-



>M9B!N86UE.B`C5V]R:S$N#0H)8V]N=')O;&QE<B!S9713=&%R=$-U<G-O<G-!























>M;F1I;F=S#0H)?'1E;7!\#0H)=&5M<"`Z/2!S96QF(&%C=&EO;D1I8W0N#0H)






>M=%9A;'5E.B!C;W5N=`T*.D5N9"(-"B$B96YD(&]P96Y);FET:6%L:7IA=&EO

>$:R(-"B(-
>`
>end
>sum -r/size 31968/1714

Peter Kraaijenoord

        Company address:                Private address:

        DPFinance
        PO Box 800                      J.P.C. Leinweberstraat 48
        3800 AV  Amersfoort             3905 EJ  Veenendaal
        The Netherlands                 The Netherlands
        (tel)+31 33 450 35 03           (tel)+31 318 525 813
        (fax)+31 33 456 09 57           (fax)+31 318 525 813


<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
                           "OO, it's Smalltalk time"
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>



Sun, 11 Oct 1998 03:00:00 GMT  
 ENFIN Memory Leak
: Hi Geoffrey,
:
: Try to help you but cannot read your t.cls file

Yeah, well I don't know what the deal with it is.  Someone I mailed
it to locally couldn't read it easer.  Something must have got corrupted
when I was getting it uuencoded.

However, it seems I may want something calledd a corrective  service package
(level 3). It has the following known bug (and fix for it) described as:

5229    If you repeatedly do a put: to an entry field, ENFIN leaks GDI
        resources.

However, it is putValue: causing problems and only on multi-line
entry fields.  I don't know if I need this fix or it already has the
fix but the fix was incomplete.  In any case, the course instructer
is going to contact VMark, and we were able to use static text fields
for what we wanted to do anyway so we are just going to avoid the
whole issue.



Sun, 11 Oct 1998 03:00:00 GMT  
 ENFIN Memory Leak

Hi Geoffrey,

Tried to help you but cannot read your  t.cls file

Quote:
>section 1/1   file t.cls   [ Wincode v2.6.1 ]
>begin 644 t.cls

>M8V5687)I86)L94YA;65S.B`G#0H)8G5T=&]N,0T*"6-O=6YT#0H)968-"B<-



>M9B!N86UE.B`C5V]R:S$N#0H)8V]N=')O;&QE<B!S9713=&%R=$-U<G-O<G-!























>M;F1I;F=S#0H)?'1E;7!\#0H)=&5M<"`Z/2!S96QF(&%C=&EO;D1I8W0N#0H)






>M=%9A;'5E.B!C;W5N=`T*.D5N9"(-"B$B96YD(&]P96Y);FET:6%L:7IA=&EO

>$:R(-"B(-
>`
>end

Peter Kraaijenoord

        Company:                        Private:
        DPFinance
        PO Box 800                      J.P.C. Leinweberstraat 48
        3800 AV  Amersfoort             3905 EJ  Veenendaal
        The Netherlands                 The Netherlands


<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
                       "OO, it's Smalltalk time"
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>



Mon, 23 Nov 1998 03:00:00 GMT  
 ENFIN Memory Leak

Quote:

>Xref: sun4nl comp.lang.smalltalk:35246
>Newsgroups: comp.lang.smalltalk
>Path: sun4nl!Utrecht.NL.net!news

>Subject: Re: ENFIN Memory Leak
>X-Nntp-Posting-Host: amf51-20.amersfoort.nl.net


>Organization: NLnet
>X-Newsreader: Forte Free Agent 1.0.82

>Date: Thu, 6 Jun 1996 04:17:07 GMT
>Lines: 66
>Hi Geoffrey,
>Tried to help you but cannot read your  t.cls file

Hi Peter,

Long time no see (must be three years).
Good to see you still aktive in this area.

Here comes the translation of the t.cls file (this time not UUDECODED):

------------------------------------------------------------------------

Controller subclass: #Work1Controller
instanceVariableNames: '
        button1
        count
        ef
'
classVariableNames: ''
poolDictionaries: '' !

!Work1Controller class methods!

initialize
        |controller|
        controller := self name: #Work1.
        controller setStartCursorsAutomaticallyTo: false.
        controller createItems; initializeBindings.
        controller finishInit.
!"end initialize"

!"End of Work1Controller class methods block"

!Work1Controller methods!

createItems
        |cItem temp form controller|
        controller := self.
        form := Form
                name:                           controllerName
                rect:                           {225 300 858 230}
                controller:             controller.
        form setGridTo: true.
        form setSnapTo: true.
        form setXGridResTo: 40.
        form setYGridResTo: 40.
        cItem := controller add: #button1
                class:                  FormButton
                rect:                           {438 40 361 82}
                options:                        {#Return #Tab #Up #Down #Backtab #Left #Right}
                form:                           form
                text:                           'Continue'.
        cItem := controller add: #ef
                class:                  FormMLString
                rect:                           {47 49 349 63}
                options:                        {#NoEdit #NoSelect #Return #Tab #Up #Down #Backtab #MultiLine}
                form:                           form.
        cItem setFormatTo: {#HCenter #VCenter {#PointSize 10} #White {#Background #Blue}}.
        form setInitialFocusItemTo: button1.
        controller setMainFormTo: controllerName.
!"end createItems"

initializeBindings
        |temp|
        temp := self actionDict.
        temp at: #button1 put: #add1.
!"end initializeBindings"

add1
        |str|

count := count+1.
str := (count asString).
ef putValue: str.
!"end add1"

openInitialization

count := 0.
ef putValue: count.
":Section Reference
add1

count := count + 1.
ef putValue: count
:End"
!"end openInitialization"

!"End of Work1Controller methods bloc

- Show quoted text -

Quote:
>>section 1/1   file t.cls   [ Wincode v2.6.1 ]
>>begin 644 t.cls

>>M8V5687)I86)L94YA;65S.B`G#0H)8G5T=&]N,0T*"6-O=6YT#0H)968-"B<-



>>M9B!N86UE.B`C5V]R:S$N#0H)8V]N=')O;&QE<B!S9713=&%R=$-U<G-O<G-!























>>M;F1I;F=S#0H)?'1E;7!\#0H)=&5M<"`Z/2!S96QF(&%C=&EO;D1I8W0N#0H)






>>M=%9A;'5E.B!C;W5N=`T*.D5N9"(-"B$B96YD(&]P96Y);FET:6%L:7IA=&EO

>>$:R(-"B(-
>>`
>>end
>Peter Kraaijenoord
>        Company:                        Private:
>        DPFinance
>        PO Box 800                      J.P.C. Leinweberstraat 48
>        3800 AV  Amersfoort             3905 EJ  Veenendaal
>        The Netherlands                 The Netherlands

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
>                       "OO, it's Smalltalk time"
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>



Mon, 23 Nov 1998 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. memory leak and leak-fixing 'patterns'

2. python startup memory size and memory leak

3. Uninitialized memory errors and memory leaks in Tk

4. memory usage (how to debug a memory leak?)

5. Possible Dolphi R4 memory leak using ODBC

6. GETDSAB and memory leaks

7. How to pinpoint memory leaks

8. TopLink errors and memory leaks

9. memory leak in gawk 3.1.0 ?

10. Memory Leaks

11. Memory Leaks in OS X?

12. Memory Leaks on OS X

 

 
Powered by phpBB® Forum Software