SourceForge logo
SourceForge logo
Menu

wxlua-users — wxLua list for users and developers

You can subscribe to this list here.

2005 Jan
Feb
Mar
Apr
May
Jun
(60)
Jul
(35)
Aug
(32)
Sep
(5)
Oct
(5)
Nov
(58)
Dec
(34)
2006 Jan
(114)
Feb
(184)
Mar
(153)
Apr
(90)
May
(153)
Jun
(59)
Jul
(24)
Aug
(43)
Sep
(17)
Oct
(34)
Nov
(11)
Dec
(204)
2007 Jan
(84)
Feb
(119)
Mar
(38)
Apr
(28)
May
(52)
Jun
(105)
Jul
(64)
Aug
(67)
Sep
(14)
Oct
(3)
Nov
(28)
Dec
(55)
2008 Jan
(228)
Feb
(55)
Mar
(30)
Apr
(30)
May
(15)
Jun
(20)
Jul
(12)
Aug
(3)
Sep
(13)
Oct
(54)
Nov
(35)
Dec
(35)
2009 Jan
(19)
Feb
(20)
Mar
(34)
Apr
(4)
May
(60)
Jun
(25)
Jul
(16)
Aug
(51)
Sep
(19)
Oct
(62)
Nov
(21)
Dec
(12)
2010 Jan
(1)
Feb
Mar
(4)
Apr
(12)
May
(23)
Jun
(13)
Jul
(1)
Aug
(40)
Sep
(18)
Oct
(21)
Nov
(26)
Dec
(34)
2011 Jan
(17)
Feb
(23)
Mar
(1)
Apr
(10)
May
(1)
Jun
(5)
Jul
(1)
Aug
Sep
Oct
(2)
Nov
Dec
(43)
2012 Jan
(5)
Feb
(19)
Mar
(6)
Apr
(24)
May
(39)
Jun
(83)
Jul
(29)
Aug
(36)
Sep
(64)
Oct
(55)
Nov
(12)
Dec
(7)
2013 Jan
(17)
Feb
(10)
Mar
(37)
Apr
(27)
May
(13)
Jun
(9)
Jul
(7)
Aug
(61)
Sep
(23)
Oct
(23)
Nov
(30)
Dec
(16)
2014 Jan
(23)
Feb
(13)
Mar
(9)
Apr
(17)
May
(2)
Jun
(11)
Jul
(2)
Aug
Sep
(9)
Oct
(24)
Nov
(2)
Dec
(14)
2015 Jan
(6)
Feb
(4)
Mar
(17)
Apr
May
(7)
Jun
(3)
Jul
Aug
Sep
(2)
Oct
(21)
Nov
(6)
Dec
(2)
2016 Jan
(4)
Feb
(2)
Mar
(7)
Apr
(3)
May
(11)
Jun
(6)
Jul
Aug
(1)
Sep
Oct
Nov
Dec
2017 Jan
Feb
Mar
Apr
(1)
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2018 Jan
(2)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2019 Jan
Feb
Mar
(6)
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
(1)
Oct
Nov
Dec
2022 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(2)
Nov
(4)
Dec
2023 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(8)
Nov
Dec
2024 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S

1
(1)
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(2)



Showing 3 results of 3

From: John L. <jla...@gm...> - 2007年10月31日 22:16:21
On 10/31/07, Adam Campbell <aca...@ho...> wrote:
>
> Hello,
>
> I've noticed some odd behavior running the wxLua sample script
> "editor.wx.lua". If I run this script through the wxlua.exe and monitor the
> process memory usage via the Windows task manager -- I'm seeing monolithic
> growth of memory usage (seems like about 32KB a second). This memory usage
> seems to be tied to UI events because after a minute or so of no UI activity
> (I don't move the mouse cursor) the memory growth stops, only to resume
> again after I move the mouse. What's even stranger is when I minimize the
> editor window the memory usage shoots way down (although Virtual Memory
> remains constant).
>
> Does anyone have a clue as to what is going on here? I'm concerned that a
> wxLua script application that stays in Focus for a prolonged preiod of time
> could slowly drain the system resources.
I think all you're seeing is the garbage collector running and yes
they probably are the wxUpdateUIEvents.
----------
For debugging your own code you can use this function
for k, v in pairs(wxlua.GetTrackedUserData()) do print(k, v) end
http://wxlua.sourceforge.net/docs/wxluaref.html#wxlua_wxlua.i
----------
http://www.lua.org/manual/5.1/manual.html#pdf-collectgarbage
>From how I understand the GC in Lua;
 "setpause" is factor of memory increase before running
 "setstepmul" speed of collector relative to mem allocation? Not sure.
You can see it with this program.
--------------------------
setpause = {110, 150, 200, 400}
setstepmul = {125, 200, 400}
for sp = 1, #setpause do
 for sm = 1, #setstepmul do
 collectgarbage("collect")
 collectgarbage("setpause", setpause[sp])
 collectgarbage("setstepmul", setstepmul[sm])
 a = os.time()
 for i = 1, 1E6 do
 local p = wx.wxPoint(0,0)
 end
 print("setpause: "..setpause[sp]..", setstepmul:
"..setstepmul[sm]..", secs: "..tostring(os.time()-a))
 end
end
--------------------------
setpause: 110, setstepmul: 125, secs: 6
setpause: 110, setstepmul: 200, secs: 6
setpause: 110, setstepmul: 400, secs: 5
setpause: 150, setstepmul: 125, secs: 8
setpause: 150, setstepmul: 200, secs: 9
setpause: 150, setstepmul: 400, secs: 10
setpause: 200, setstepmul: 125, secs: 9
setpause: 200, setstepmul: 200, secs: 21
setpause: 200, setstepmul: 400, secs: 28
setpause: 400, setstepmul: 125, secs: 40
setpause: 400, setstepmul: 200, secs: 43
setpause: 400, setstepmul: 400, secs: 38
setpause: 200, setstepmul: 800, secs: 9
setpause: 800, setstepmul: 200, secs: 8
setpause: 800, setstepmul: 800, secs: 13
It seems like you actually gain in running the garbage collector more
often. The best numbers to use may be
 collectgarbage("setpause", 120)
 collectgarbage("setstepmul", 400)
I have been thinking seriously about making the GC a little more
aggressive by default. This is because Lua thinks that the userdata is
of size void*, a pointer, but behind that can be a rather large object
and there is no way to give a hint to the garbage collector about it's
true size. This has been brought up on the Lua mailing list, but it
doesn't seem like this will be added anytime soon.
> As a side note, I don't observe the same behavior running the full blown
> wxLua editor executable, only the script version (editor.wx.lua).
That's because the wxLua editor is written in Lua, see
samples/editor.wx.lua, and wxLuaEdit is in C++.
Regards,
 John
From: Adam C. <aca...@ho...> - 2007年10月31日 11:32:09
Hello,
=20
I've noticed some odd behavior running the wxLua sample script "editor.wx.l=
ua". If I run this script through the wxlua.exe and monitor the process mem=
ory usage via the Windows task manager -- I'm seeing monolithic growth of m=
emory usage (seems like about 32KB a second). This memory usage seems to be=
 tied to UI events because after a minute or so of no UI activity (I don't =
move the mouse cursor) the memory growth stops, only to resume again after =
I move the mouse. What's even stranger is when I minimize the editor window=
 the memory usage shoots way down (although Virtual Memory remains constant=
).=20
=20
Does anyone have a clue as to what is going on here? I'm concerned that a w=
xLua script application that stays in Focus for a prolonged preiod of time =
could slowly drain the system resources.
=20
As a side note, I don't observe the same behavior running the full blown wx=
Lua editor executable, only the script version (editor.wx.lua).=20
=20
Any information on this behavior would be very much appreciated. Thanks
_________________________________________________________________
Boo!=A0Scare away worms, viruses and so much more! Try Windows Live OneCare=
!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=3Dwl_hotma=
ilnews=
From: Tobbe L. <tob...@gm...> - 2007年10月01日 11:27:19
> Awesome! This is great :) But it doesn't seem to offer the possibility
> to logoff. However, I found wxExecute that might be able to help me.
> It says "If the child process IO is redirected, under Windows the
> process window is not shown by default". Can someone please help me
> out how to use that information to not show a window when calling
> "shutdown -l -t 0"?
This seems to work great :)
wx.wxExecute("shutdown -l -t 0")

Showing 3 results of 3

Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /