Menu

#17 Crashes if it was minimized when it was closed

open
None
5
2008-08-27
2007-11-13
Simone
No

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.

Discussion

  • Anonymous

    Anonymous - 2007-11-22

    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).

     
  • Simone

    Simone - 2007-11-22

    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.

     
  • Nobody/Anonymous

    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).

     
  • Simone

    Simone - 2008-01-27

    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

     
  • Simone

    Simone - 2008-01-27

    FreeMeter patch

     
  • Mieszko Lassota

    Mieszko Lassota - 2008-08-27
    • assigned_to: nobody --> mieszkolassota
     

Log in to post a comment.