Git Product home page Git Product logo

Comments (10)

leocb avatar leocb commented on July 17, 2024

Hi, I believe this is related to what #55 fixed, I released it in the lastest version, are you using the latest? Try that and report back please :)

from materialskin.

Katalijst avatar Katalijst commented on July 17, 2024

I'm using the 2.1.2 versions from NuGet Manager

from materialskin.

leocb avatar leocb commented on July 17, 2024

hmm, ok, good to know. Could you get the stack trace of the error and post it here please? otherwise I have no way to know where it's failing.

from materialskin.

Suda0518 avatar Suda0518 commented on July 17, 2024

i have a question ,when i clsoing winform ,the form was closed ,but the process not stop,it was still runing,disposing was not disposed , it break at below :

    protected override void Dispose(bool disposing)
    {
        if (disposing && (components != null))
        {
            components.Dispose();
        }
        base.Dispose(disposing);
    }

from materialskin.

leocb avatar leocb commented on July 17, 2024

I see you opened an issue (#65) for that last comment, We'll continue the discussion about it there

from materialskin.

deepakchhapru avatar deepakchhapru commented on July 17, 2024

Hi @leocb ,
When Datasource property is set for combobox and after selecting value from list, when control gets focus again I get Null Reference Error.

Below is stackTrace

System.NullReferenceException was unhandled HResult=-2147467261 Message=Object reference not set to an instance of an object. Source=MaterialSkin StackTrace: at MaterialSkin.Controls.MaterialComboBox.CustomDrawItem(Object sender, DrawItemEventArgs e) at System.Windows.Forms.ComboBox.OnDrawItem(DrawItemEventArgs e) at System.Windows.Forms.ComboBox.WmReflectDrawItem(Message& m) at System.Windows.Forms.ComboBox.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam) at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message& m) at System.Windows.Forms.Control.WmOwnerDraw(Message& m) at System.Windows.Forms.Control.WmDrawItem(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Application.ParkingWindow.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam) at System.Windows.Forms.NativeWindow.DefWndProc(Message& m) at System.Windows.Forms.Control.DefWndProc(Message& m) at System.Windows.Forms.Control.WmSetFocus(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ComboBox.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) InnerException:

from materialskin.

leocb avatar leocb commented on July 17, 2024

Thanks for posting the stack trace
it seems to be related to the debuger somehow(?), try it on a release compile and see if it still happens
also, what version of the .net are your using? the lib is compiled on 4.6.2 and is know to have issues with version 4.7.x

from materialskin.

deepakchhapru avatar deepakchhapru commented on July 17, 2024

The was same issue with MaterialSkin.dll when downloaded from nuget.org.
I then downloaded the code from github compiled in debug mode and tried to find out on which line it is giving me error.

Error is in Class: "MaterialComboBox.cs" Method: "CustomDrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e)" on below line:

if (!string.IsNullOrWhiteSpace(DisplayMember)) { Text = Items[e.Index].GetType().GetProperty(DisplayMember).GetValue(Items[e.Index], null).ToString(); }

My application is compiled in 4.6.1

And Your code (downloaded from git) seems to be compiled in 4.6.1.

from materialskin.

sabodh avatar sabodh commented on July 17, 2024

any updates on this issue.

from materialskin.

leocb avatar leocb commented on July 17, 2024

I haven't fixed this one yet; I don't use the material skin with a database and I don't plan to install one on my development computer just to debug this issue. If anyone wants to fix the issue and open a PR, I'd be more than happy to update the nugget package.

from materialskin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.