Page 2 of 4 <1234>
Topic Options
#89166 - 2002-11-07 03:59 PM Re: bbCheckerII 1.5
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Had my checker running for 32 hrs...

Strange things happened: KiX was using 10MB, total mem usage - sum active applics > 100 MB.

Got errors "unable to find c:", "not enough qouta" (not enabled!!!) etc.

Still memleak even with KiX4.12RC1???
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#89167 - 2002-11-07 04:03 PM Re: bbCheckerII 1.5
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
No, theres a small memory leak with Forms to do with the timer object - the OnTimer event string is leaking. And the bigger the OnTimer string is, the more memory gets leaked

[ 07. November 2002, 16:04: Message edited by: Shawn ]

Top
#89168 - 2002-11-07 04:06 PM Re: bbCheckerII 1.5
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
I think it might be worse than that.

When I click on the Miscellaneous button, more memory is eaten.

Could it be a form create/destroy pair not working ??

W
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
#89169 - 2002-11-07 04:07 PM Re: bbCheckerII 1.5
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
OK then,

will put my finger in the dyke to stop the leak:
http://home.planet.nl/~meder/map12/hansbrinker.html
[Big Grin]
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#89170 - 2002-11-07 04:12 PM Re: bbCheckerII 1.5
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
Actually, I would like to retract my last post, because I have been running the logonscriptdemo that Chris wrote (good job) and that does not leak.

Memory is taken, then given back at the end - like a good little script.

So, from this, I would hazzard to say the BBChecker may be at fault.

W
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
#89171 - 2002-11-07 04:17 PM Re: bbCheckerII 1.5
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Well, have to compare apples to apples here and one cant really compare LoginScript to BBChecker because they're two different beasts. Forms does leak over long periods of time ... in the case of LoginScript, it runs, comsumes memory, then gives it all back to the OS when the Kixscript finishes and is released from memory ...

Jooels script runs 24/7 and slowly eats away at memory, never giving any back - plus, if memory serves, Jooel had to do some funky things to get the slider to run properly. Im not sure whether BBChecker is doing anything in particular to cause the leak - its probably forms that is leaking. But just as a test, heres the "ideal" way to pop a dialog and you might want to check memory usage on this:

code:
Break On

$Form = CreateObject("Kixtart.Form")
$Form.Text = "Form"

$Button = $Form.Button()
$Button.Text = "Popup"
$Button.Center
$Button.OnClick = "Button_Click()"

Function Button_Click

Dim $Form

$Form = CreateObject("Kixtart.Form")
$Form.Text = "Dialog"
$Form.ClientWidth = 200
$Form.ClientHeight = 200
$Form.Center
$Form.Show
While $Form.Visible
$=Execute($Form.DoEvents)
Loop

EndFunction

$Form.Center
$Form.Show
While $Form.Visible
$=Execute($Form.DoEvents)
Loop


Top
#89172 - 2002-11-07 04:24 PM Re: bbCheckerII 1.5
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Sorry, "ideal" is a bad term ... "memory consuming" might be a better term. I very rarely declare my dialogs as function local only because its a pain-in-the-ass to code around - only suitable for very simple dialogs. Mostly declare global in the main script, plus that would probably not show any memory leak as readily as this pop-and-dispose sample would.

[ 07. November 2002, 16:24: Message edited by: Shawn ]

Top
#89173 - 2002-11-07 04:37 PM Re: bbCheckerII 1.5
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
Ok, by constantly click the button and closing the newly created forms, memory is being used like no tomorrow.!

Once the main original form is closed, the memory is released back.

And, yes I did realise afterward that my comparison to the scriptdemo and the bbchecker was wrong. (sorry)

W
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
#89174 - 2002-11-07 05:55 PM Re: bbCheckerII 1.5
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
wiz, can you give me the specifics of your environment - os vers,kix vers,forms vers ?
Top
#89175 - 2002-11-07 06:00 PM Re: bbCheckerII 1.5
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
Windows 2000 service pack 2
KixForms : 2.1.1.35
Kix32 : 4.12b2

I am now at home, and I have the same memory leak
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
#89176 - 2002-11-07 06:13 PM Re: bbCheckerII 1.5
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
yes good one - i do see it now - and think I know what it is ... will hit the code tonight and report back ... very well spotted.
Top
#89177 - 2002-11-07 06:27 PM Re: bbCheckerII 1.5
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
what was it ? oh pray tell.!

W
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
#89178 - 2002-11-07 06:35 PM Re: bbCheckerII 1.5
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Not 100% sure really, just guessing that the bitmap backing for the form isn't being released properly ... the bitmap backing is the canvas we use to "paint" our lines, boxes, circles etc ... it actually makes up the "bulk" of memory used by the form object. So if there is a deallocation issue, it would show up quite readily - which seems to be the case in this case.
Top
#89179 - 2002-11-07 10:14 PM Re: bbCheckerII 1.5
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Good news - that bitmap backing guess was spot on ... is anyone available to test with a quick pre-release ?

[ 07. November 2002, 22:15: Message edited by: Shawn ]

Top
#89180 - 2002-11-07 10:39 PM Re: bbCheckerII 1.5
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
yeap go for it.

W
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
#89181 - 2002-11-07 11:10 PM Re: bbCheckerII 1.5
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
Got the new version and tried your attached script. Worked great.

I also tried the other script that you posted with a button that creates forms. That worked great as well.

Fantastic work.

W
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
#89182 - 2002-11-07 11:15 PM Re: bbCheckerII 1.5
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
well, i have to thank you muchly for spotting that leak, and to be honest, i sqwashed another non-related issue while I was fixing this one.

When a visible PictureBox is made hidden inside a form, the main form looses focus to the DOS console (something like that) ... not like this would ever happen too much in the real world but its fixed as well.

Top
#89183 - 2002-11-10 11:56 PM Re: bbCheckerII 1.5
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
boys have been posting...
good, had something to read after short vacation.

what comes to the trash button, having it 3d looks awfull.
hiding the black border, please tell if you find a way around it.

what comes to runtime, my checker had crashed on 4th and the error was buddies redim something...

so, not fully stable yet.

what comes to checking pm, les, you shouldn't be asking that as it will cause the additional bandwidth usage.
it is not hard to do, about 30mins of coding...
_________________________
!

download KiXnet

Top
#89184 - 2002-11-11 12:01 AM Re: bbCheckerII 1.5
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Eh Jooel,
Welcome back! The evenings and weekends were quiet without you.

The PM thingy shouldn't be too hard on the pipe. I look forward to it. Will turn your checker into a poor-man's messenger.

BTW, You've got PM.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#89185 - 2002-11-11 11:17 AM Re: bbCheckerII 1.5
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
les, did a upgrade step0 for the pm-check and possible for write too (a messenger that is)

get files:
pm.kix
parse.udf
bbcheckerII.kix

from current dir:
http://www.gwspikval.com/jooel/scripts/bbChecker/sources/current/

and place them in bbchecker folder:
%programfiles%\BBChecker

can't test that though as board does not allow sending pm to yourself [Wink]
_________________________
!

download KiXnet

Top
Page 2 of 4 <1234>


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 310 anonymous users online.
Newest Members
Praveer, Ollero, rayyo, Foxlicht, DonChild
17742 Registered Users

Generated in 0.043 seconds in which 0.012 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org