Arithmetic Exception

4 posts, 0 answers
  1. Ulrich
    Ulrich avatar
    23 posts
    Member since:
    Dec 2008

    Posted 08 Oct 2010 Link to this post

    Hello Telerik Team,

    I am facing a rather strange problem with the telerik dropdownlist and listbox.

    I am developing an application which relies on a couple of nonmanaged driver-dlls. As soon as I load one particular dll, after that I cannot instanianate ANY telerik dropdownlist or listbox. As soon as the controls ctor is called, an arithmeticexception is thrown. The call stack is as follows:

    bei Telerik.WinControls.UI.RadScrollBarElement.get_ThumbLengthProportion()
    bei Telerik.WinControls.UI.RadScrollBarElement.SetupThumb(Int32 newValue, Boolean thumbLocationOnly)
    bei Telerik.WinControls.UI.RadScrollBarElement.set_Maximum(Int32 value)
    bei Telerik.WinControls.UI.VirtualizedScrollPanel`2..ctor()
    bei Telerik.WinControls.UI.RadListElement..ctor()
    bei Telerik.WinControls.UI.PopupEditorElement.CreateChildElements()
    bei Telerik.WinControls.UI.RadDropDownListElement.CreateChildElements()
    bei Telerik.WinControls.RadElement.CallCreateChildElements()
    bei Telerik.WinControls.RadElement.Construct()
    bei Telerik.WinControls.RadElement..ctor()
    bei Telerik.WinControls.RadItem..ctor()
    bei Telerik.WinControls.UI.PopupEditorElement..ctor()
    bei Telerik.WinControls.UI.RadDropDownListElement..ctor()
    bei Telerik.WinControls.UI.RadDropDownList.CreateChildItems(RadElement parent)
    bei Telerik.WinControls.RadControl.Telerik.WinControls.IComponentTreeHandler.CreateChildItems(RadElement parent)
    bei Telerik.WinControls.RadControl.ComponentOverrideElementTree.CreateChildItems(RadElement parent)
    bei Telerik.WinControls.RadControl.Construct()
    bei Telerik.WinControls.RadControl..ctor()
    bei Telerik.WinControls.UI.RadDropDownList..ctor()
    bei SenseIT._4Dtwo.CatchIT.Forms.AddNewDevice.InitializeComponent() in E:\Projekte\es-tfs\ES.4Dtwo\ES.4Dtwo.Hydra\ES.4Dtwo.Hydra\SenseIT.4Dtwo.CatchIT\Forms\AddNewDevice.Designer.cs:Zeile 37.
    bei SenseIT._4Dtwo.CatchIT.Forms.AddNewDevice..ctor() in E:\Projekte\es-tfs\ES.4Dtwo\ES.4Dtwo.Hydra\ES.4Dtwo.Hydra\SenseIT.4Dtwo.CatchIT\Forms\AddNewDevice.cs:Zeile 20.
    bei SenseIT._4Dtwo.CatchIT.Controls.DeviceView.radButton1_Click(Object sender, EventArgs e) in E:\Projekte\es-tfs\ES.4Dtwo\ES.4Dtwo.Hydra\ES.4Dtwo.Hydra\SenseIT.4Dtwo.CatchIT\Controls\DeviceView.cs:Zeile 161.
    bei System.Windows.Forms.Control.OnClick(EventArgs e)
    bei Telerik.WinControls.RadControl.OnClick(EventArgs e)
    bei Telerik.WinControls.UI.RadButton.ButtonElement_Click(Object sender, EventArgs e)
    bei Telerik.WinControls.RadItem.OnClick(EventArgs e)
    bei Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)
    bei Telerik.WinControls.RadItem.DoClick(EventArgs e)
    bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
    bei Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
    bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
    bei Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
    bei Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
    bei Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
    bei Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
    bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    bei System.Windows.Forms.Control.WndProc(Message& m)
    bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    bei Telerik.WinControls.RadControl.WndProc(Message& m)
    bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
    bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    bei System.Windows.Forms.Application.Run(Form mainForm)
    bei SenseIT._4Dtwo.CatchIT.Program.Main() in E:\Projekte\es-tfs\ES.4Dtwo\ES.4Dtwo.Hydra\ES.4Dtwo.Hydra\SenseIT.4Dtwo.CatchIT\Program.cs:Zeile 21.
    bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
    bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    bei System.Threading.ThreadHelper.ThreadStart()

    Do you have any idea how I could work around this problem?

    best regards

  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 08 Oct 2010 Link to this post

    Hello Ulrich,

    Can you please provide some more information, some code snippets, a small sample, or anything from which i can start working on a solution for your problem?

    Best regards,
    Emanuel Varga
  3. DevCraft R3 2016 release webinar banner
  4. Ulrich
    Ulrich avatar
    23 posts
    Member since:
    Dec 2008

    Posted 08 Oct 2010 Link to this post

    Hello Emanuel,

    I will try to make a package where you can debug the problem.

    I am well aware that the problem might stem from a third party component and might not be directly a bug from telerik, but all standard user controls work. That's why I thought I post since the telerik team has a deeper knowledge about what happens inside their controls than I have.

    I will try to provide you with a package tomorrow, I just have to make sure that the dll in question loads without the needed hardware attached to the computer, so you can take a look at the problem.

    best regards

  5. Stefan
    Stefan avatar
    2891 posts

    Posted 14 Oct 2010 Link to this post

    Hello Ulrich, 

    Thank you for writing.

    The provided information is not enough for us to determine the reason for the exception. This is why I would like to kindly ask you to prepare a sample project where this exception is thrown. Please note that you should open a ticket in order to attach the project. This will allow me to investigate your case locally and provide you with further assistance.

    I am looking forward to your reply.

    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top