none
Unhandled Exception Error - Connecting Phone

    Pertanyaan

  • 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 **************

    mscorlib

        Assembly Version: 2.0.0.0

        Win32 Version: 2.0.50727.8784 (QFE.050727-8700)

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

    ----------------------------------------

    MGNotification

        Assembly Version: 8.6.0.106

        Win32 Version: 8.6.0.106

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

    ----------------------------------------

    Configuration

        Assembly Version: 3.0.0.0

        Win32 Version: 3.0.0.0

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

    ----------------------------------------

    WUL.Ctrls

        Assembly Version: 2.3.0.114

        Win32 Version: 2.3.0.114

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

    ----------------------------------------

    System

        Assembly Version: 2.0.0.0

        Win32 Version: 2.0.50727.8770 (QFE.050727-8700)

        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

    ----------------------------------------
    27 Mei 2018 19:03

Semua Balasan

  • 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
        //...
    
        yourObject.Dispose();

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

        using ()
        {
            //use yourObject...
        }

    Regards,

    Frankie


    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.

    28 Mei 2018 7:50