Windows 8 x64 Error launching: Controls.Utils.AppearanceHelper.GetFontHashCode(Font font)

Discussion of open issues, suggestions and bugs regarding file and folder merge tool – Code Compare
Post Reply
spew
Posts: 2
Joined: Fri 28 Nov 2014 14:18

Windows 8 x64 Error launching: Controls.Utils.AppearanceHelper.GetFontHashCode(Font font)

Post by spew » Fri 28 Nov 2014 14:55

I am trying to evaluate Code Compare for my team but I am getting an error on launch.

I googled the stack trace and found that it may be a fixed issue in DevExpress:
https://www.devexpress.com/Support/Cent ... ls/B192449

Is there any workaround that I can try? (Or a patch)

Code: Select all

=========================
 General
=========================
Application: Code Compare
Product: Devart Code Compare
Product Locale: English 
Assembly: Devart.CodeCompare, Version=4.0.54.0, Culture=neutral, PublicKeyToken=09af7300eec23701
C:\Program Files\Devart\Code Compare\Devart.CodeCompare.dll, Trial
Global cache: False
Framework: 4.0.30319.34014

=========================
 Exception Information
=========================
Message: Arithmetic operation resulted in an overflow.
Source: Devart.XUtils
TargetSite: Int64 GetFontHashCode(System.Drawing.Font)
HelpLink: 
Type: System.OverflowException
Stack:
   at Controls.Utils.AppearanceHelper.GetFontHashCode(Font font)
   at Controls.Utils.AppearanceObject.CalcDefaultTextSize(Graphics g)
   at Controls.Skins.Form.FormPainter.CheckReady()
...

AlexeyN
Devart Team
Posts: 244
Joined: Wed 12 Sep 2012 12:09

Re: Windows 8 x64 Error launching: Controls.Utils.AppearanceHelper.GetFontHashCode(Font font)

Post by AlexeyN » Mon 01 Dec 2014 11:16

Hello,

Code Compare has the issue with the same call stack and it is due to the 'AllocationPreference' option at 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Memory Management'.

Please, delete 'AllocationPreference', restart machine and try launching Code Compare. Please confirm, that the issue is gone.

Anyway, we will investigate and fix that issue.

spew
Posts: 2
Joined: Fri 28 Nov 2014 14:18

Re: Windows 8 x64 Error launching: Controls.Utils.AppearanceHelper.GetFontHashCode(Font font)

Post by spew » Mon 01 Dec 2014 20:06

I can confirm that clearing the registry entry resolved the issue.

I was running with that flag for a very long time (so long I had forgotten it was still set) to test 64bit version of my software.

Thank you.

Post Reply