Unhandled Exception Error - Connecting Phone RRS feed

  • Question

  • Hello everyone,

    I tried to connect my phone (P20 Pro) to the computer and received BSOD. After I updated motherboard firmware, BSOD no longer appear but I got this error instead. Any clue on how to resolve this?

    See the end of this message for details on invoking

    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************

    System.ObjectDisposedException: Cannot access a disposed object.

    Object name: 'USBDevicePluginForm'.

       at System.Windows.Forms.Control.CreateHandle()

       at System.Windows.Forms.Form.CreateHandle()

       at WUL.Forms.SkinForm.CreateHandle()

       at System.Windows.Forms.Control.get_Handle()

       at System.Windows.Forms.Control.SetVisibleCore(Boolean value)

       at System.Windows.Forms.Form.SetVisibleCore(Boolean value)

       at System.Windows.Forms.Control.Show()

       at a87.c.a()

       at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)

       at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)

       at System.Threading.ExecutionContext.runTryCode(Object userData)

       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

       at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

       at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

    ************** Loaded Assemblies **************


        Assembly Version:

        Win32 Version: 2.0.50727.8784 (QFE.050727-8700)

        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll



        Assembly Version:

        Win32 Version:

        CodeBase: file:///C:/Program%20Files%20(x86)/Wondershare/MobileGo/MGNotification.exe



        Assembly Version:

        Win32 Version:

        CodeBase: file:///C:/Program%20Files%20(x86)/Wondershare/MobileGo/Configuration.DLL



        Assembly Version:

        Win32 Version:

        CodeBase: file:///C:/Program%20Files%20(x86)/Wondershare/MobileGo/WUL.Ctrls.DLL



        Assembly Version:

        Win32 Version: 2.0.50727.8770 (QFE.050727-8700)

        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/

    • Moved by Stanly Fan Wednesday, June 6, 2018 8:19 AM
    Sunday, May 27, 2018 7:03 PM

All replies

  • Hi,

    What the type of your project is?

    >>System.ObjectDisposedException: Cannot access a disposed object.

    Where did you get this message in your project? Please provide the related code here for more details.

    I guess it is because you used some disposed objects or other similar mistakes.

    1, Try to dispose your objects after use:

        //use yourObject

    2, Try to use a using block to put your code:

        using ()
            //use yourObject...



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, May 28, 2018 7:50 AM