If FreeMeter was minimized when it closed, it gives an error the next time it starts up.
Here's the error:
----------------------------------------
Message: Parametro non valido.
Stack trace:
in System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
in FreeMeter.Form1.Form1_Borders()
in FreeMeter.Form1..ctor()
in FreeMeter.Form1.Main()
----------------------------------------
If I delete the config file, it starts up correctly.
Here's the config file that causes the crashes:
----------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<settings>
<DispAvg>False</DispAvg>
<UnitsKbytes>True</UnitsKbytes>
<UnitsKbits>False</UnitsKbits>
<GraphDownload>True</GraphDownload>
<GraphUpload>True</GraphUpload>
<GraphSummary>False</GraphSummary>
<AutoScale>True</AutoScale>
<TopMost>True</TopMost>
<SimpleNotifyIcon>False</SimpleNotifyIcon>
<ShowGraphLabel>True</ShowGraphLabel>
<ColorCycle>False</ColorCycle>
<MailCheck>False</MailCheck>
<ClipWatch>False</ClipWatch>
<LogEnabled>False</LogEnabled>
<TimerInterval>1000</TimerInterval>
<LogInterval>5</LogInterval>
<PopServer>mail.exampleserver.com</PopServer>
<PopUser>username</PopUser>
<PopPass>Zu1BYW1W8wl23w8W+16EIg==</PopPass>
<PopEnabled>False</PopEnabled>
<PopType>0</PopType>
<MailCheckInterval>600000</MailCheckInterval>
<BackgroundRed>44</BackgroundRed>
<BackgroundGreen>81</BackgroundGreen>
<BackgroundBlue>138</BackgroundBlue>
<ForegroundRed>255</ForegroundRed>
<ForegroundGreen>255</ForegroundGreen>
<ForegroundBlue>255</ForegroundBlue>
<WindowX>5</WindowX>
<WindowY>967</WindowY>
<DispWidth>0</DispWidth>
<DispHeight>0</DispHeight>
<WindowIsVisible>False</WindowIsVisible>
<GraphScale>4200</GraphScale>
<Trans>100</Trans>
<FontSize>0</FontSize>
<LogsUnit>GB</LogsUnit>
<LogsPeriod>monthly</LogsPeriod>
<LimitsCheck>False</LimitsCheck>
<LimitsUpload>0</LimitsUpload>
<LimitsDownload>0</LimitsDownload>
<LimitsBoth>0</LimitsBoth>
<LimitsPeriod>0</LimitsPeriod>
</settings>
----------------------------------------
WindowX, WindowY, DispWidth and DispHeight seem to be wrong.
Logged In: YES
user_id=1942891
Originator: NO
I just wanted to confirm I see the same behavior, and that changing the "<WindowIsVisible>False</WindowIsVisible>" line to "<WindowIsVisible>True</WindowIsVisible>" stops the crash from occurring (v1.5.2873).
Logged In: YES
user_id=1388123
Originator: YES
Yes, it's correct, it doesn't crash, although the position and the size are not the ones it had when it was closed.
Logged In: NO
I also noticed this bug. It appears to be <WindowIsVisible>False</WindowIsVisible> that causes the failed startup (setting this value to True allows normal startup).
Logged In: YES
user_id=1388123
Originator: YES
Just wanted to say that I fixed the problem myself a few days ago.
I'm uploading a patch to be applied to the source file http://freemeter.meta-forge.com/index.php?path=&download=FreeMeter_v1.3.2401_VS2005_CS_Src.zip\).
File Added: FreeMeter.patch
FreeMeter patch