It is currently April 27th, 2024, 8:39 am

Memory leaks in InputText plugin

Report bugs with the Rainmeter application and suggest features.
allkhor
Posts: 3
Joined: June 16th, 2012, 12:22 pm

Memory leaks in InputText plugin

Post by allkhor »

Hey Guys! Thank you so much for Rainmeter, it's real great program!
I see Memory leaks in InputText plugin, it's my problem or bug?
Your Example from manual:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[Variables]
FirstVar=!WriteKeyValue
SecondVar=!SetVariable
FontSize=14

[MeterBackground]
Meter=Image
SolidColor=1E3A69FF
W=250
H=105

[MeasureInput]
Measure=Plugin
Plugin=InputText
SolidColor=76A0E8FF
FontColor=FFFFFF
FontFace=Seqoe UI
StringStyle=Italic
FontSize=#FontSize#
X=5
Y=5
H=25
W=240
DefaultValue="Change Me!"
Command1=!WriteKeyValue Variables FirstVar "$UserInput$" "#CURRENTPATH#InputText.inc"
Command2=!Refresh #CURRENTCONFIG#
Command3=!SetVariable SecondVar "$UserInput$" Y=40 DefaultValue="Change Me Too!"
Command4=!Execute ["$UserInput$"] Y=75 DefaultValue="Text file path and name"

[MeterWriteKeyValue]
Meter=String
X=5
Y=5
FontSize=15
FontColor=255,255,255,255
AntiAlias=1
Text=#FirstVar#
LeftMouseUpAction=!CommandMeasure "MeasureInput" "ExecuteBatch 1-2"

[MeterSetVariable]
Meter=String
X=5
Y=10R
FontSize=15
FontColor=255,255,255,255
AntiAlias=1
DynamicVariables=1
Text=#SecondVar#
LeftMouseUpAction=!CommandMeasure "MeasureInput" "ExecuteBatch 3"

[MeterOpenEditor]
Meter=String
X=5
Y=10R
FontSize=15
FontColor=255,255,255,255
AntiAlias=1
DynamicVariables=1
Text=Open Text File
LeftMouseUpAction=!CommandMeasure "MeasureInput" "ExecuteBatch 4"
If i delete code with InputText Plugin, Rainmeter used 5200kb, but if i return code with InputText, Rainmeter used 13000kb and more...
It's normal?
My platform: Rainmeter 2.2.0 r1116 64-bit, Windows 7 Maximum sp1 x64 with all updates.
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: Memory leaks in InputText plugin

Post by poiru »

allkhor wrote:It's normal?.
Yes, this is normal. InputText is a .NET plugin, which means that Rainmeter needs to load the .NET libraries when loading InputText (which is the cause of the increased memory use).