I am not exactly sure what is causing this exception but the stack trace
contains only System.* namespaces so the problem will most likely be in
mono implementation of winforms. My testing shows that this exception is
related only to hexbox package (libhexbox package is unaffected) and the
application functionality seems to be unaffected also - it is just an
exception printed into the console when the application is closed. I think
it can be ignored.

BTW I have examined "debian/control" file of the package and it seems the
descriptions for "hexbox" and "libhexbox" packages are swapped.

Regards, Jaroslav


On Tue, Nov 18, 2014 at 12:36 PM, Mathieu Malaterre <ma...@debian.org>
wrote:

> Control: tags -1 pending
>
> On Mon, Nov 17, 2014 at 3:14 PM, Mathieu Malaterre <ma...@debian.org>
> wrote:
> > Control: tags -1 patch
> >
> > On Mon, Nov 17, 2014 at 3:08 PM, Jaroslav Imrich <ja...@jariq.sk> wrote:
> >> Hello Mathew,
> >>
> >> I have developed a patch [1] for HexBox control 1.6.0 that disables
> usage of
> >> carets when required unmanaged functions are not available in the
> runtime
> >> platform.With this patch caret is not displayed on Linux with Mono
> runtime
> >> but other than that HexBox control is still perfectly usable. Feel free
> to
> >> incorporate these changes into your package or contact me if you need
> any
> >> help with that.
> >>
> >> [1]
> >>
> https://github.com/jariq/Be.HexEditor/commit/c05c5df1358bf5427dd2fcec0e392a132cd69422
> >
> > Wow ! Thanks much, will try asap.
>
> Jaroslav,
>
> Do you know why I get the following (simply start & close hexbox, you
> do not need to even open a file):
>
> $ hexbox
>
> Unhandled Exception:
> System.ArgumentException: A null reference or invalid value was found
> [GDI+ status: InvalidParameter]
>   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in
> <filename unknown>:0
>   at System.Drawing.Graphics.GdipMeasureString (IntPtr graphics,
> System.String text, System.Drawing.Font font,
> System.Drawing.RectangleF& layoutRect, IntPtr stringFormat) [0x00000]
> in <filename unknown>:0
>   at System.Drawing.Graphics.MeasureString (System.String text,
> System.Drawing.Font font, Int32 width, System.Drawing.StringFormat
> format) [0x00000] in <filename unknown>:0
>   at (wrapper remoting-invoke-with-check)
> System.Drawing.Graphics:MeasureString
> (string,System.Drawing.Font,int,System.Drawing.StringFormat)
>   at System.Windows.Forms.TextRenderer.MeasureTextInternal
> (IDeviceContext dc, System.String text, System.Drawing.Font font, Size
> proposedSize, TextFormatFlags flags, Boolean useMeasureString)
> [0x00000] in <filename unknown>:0
>   at System.Windows.Forms.TextRenderer.MeasureText (System.String
> text, System.Drawing.Font font, Size proposedSize, TextFormatFlags
> flags) [0x00000] in <filename unknown>:0
>   at System.Windows.Forms.ToolStripItem.OnParentChanged
> (System.Windows.Forms.ToolStrip oldParent,
> System.Windows.Forms.ToolStrip newParent) [0x00000] in <filename
> unknown>:0
>   at System.Windows.Forms.ToolStripItem.set_Parent
> (System.Windows.Forms.ToolStrip value) [0x00000] in <filename
> unknown>:0
>   at (wrapper remoting-invoke-with-check)
> System.Windows.Forms.ToolStripItem:set_Parent
> (System.Windows.Forms.ToolStrip)
>   at System.Windows.Forms.ToolStripItemCollection.Remove
> (System.Windows.Forms.ToolStripItem value) [0x00000] in <filename
> unknown>:0
>   at System.Windows.Forms.ToolStripItem.Dispose (Boolean disposing)
> [0x00000] in <filename unknown>:0
>   at System.Windows.Forms.ToolStripDropDownItem.Dispose (Boolean
> disposing) [0x00000] in <filename unknown>:0
>   at System.Windows.Forms.ToolStripMenuItem.Dispose (Boolean
> disposing) [0x00000] in <filename unknown>:0
>   at System.ComponentModel.Component.Finalize () [0x00000] in
> <filename unknown>:0
>

Reply via email to