System.OverflowException: arithmetic operation resulted in an overflow - C1.Win

Posted by: christoph.herzog on 11 April 2024, 7:20 pm EST

  • Posted 11 April 2024, 7:20 pm EST - Updated 11 April 2024, 7:25 pm EST

    Hi,

    we’re having some issues with C1.Win.Ribbons. Occasionally our program throws an System.OverflowException when calling the ShowDialog function.

    The problem is not reproducable and occurs at about 1% of the calls. When the exception is thrown you can recall the program with the same parameters and everything works fine.

    Is this a known issue? Any idea what we’re doing wrong?

    Version:

    C1.Win.Ribbon 4.8.20232.620

    Regards

  • Posted 14 April 2024, 11:37 pm EST

    Hello,

    We are sorry, but there are no known similar issues.

    It’s hard to investigate the behavior until we can replicate it on our end. As the probability of its occurrence is only about 1%, could you please provide us with a stripped-down sample or the dialog code that you are trying to show using the ShowDialog() method or update the attached sample so that we can observe and investigate the behavior further? It would also be helpful if you could tell us how you are implementing C1 Ribbon at your end.

    Also, could you please provide your machine and environment details, like CPU, RAM, OS, etc.?

    Please refer to the attached sample (see Ribbon_ShowDialog_Test.zip). We have tested it 1000 times with the version you mentioned but did not get the mentioned exception.

    Are you using multi-threading in your project? If yes, could you please share your implementation of multi-threading?

    Also, please try the following and let us know your observations if the behavior is still replicable:

    Test your project with the latest version, 4.8.20233.643

    Test your project with ‘en’ locale

    Regards,

    Uttkarsh.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels