Helpmij.nl
Helpmij.nl
Helpmij.nl
Steun Helpmij.nl! Klik hier     Computerprobleem? Klik hier!

Quote

Weergeven resultaten 1 tot 6 van 6

Onderwerp: start debugging werkt niet ?

  • Vraag is opgelost
  1. #1
    Senior Member m4dc0w344's avatar
    Geregistreerd
    8 augustus 2011
    Locatie
    den haag
    Afstand tot server
    ±111 km

    start debugging werkt niet ?

    hallo
    ik had een paar kleine aan passingen gedaan aan form1 toen ik hem wilde debuggen werkte ie niet.
    Deze melding kreeg ik:
    Code:
    System.InvalidOperationException was unhandled
      Message=Het is niet toegestaan een bewerking uit te voeren via verschillende threads: er werd vanaf een andere thread toegang gekregen tot het besturingselement TabPage3 dan de thread waarop het element is gemaakt.
      Source=System.Windows.Forms
      StackTrace:
           bij System.Windows.Forms.Control.get_Handle()
           bij System.Windows.Forms.Control.SetVisibleCore(Boolean value)
           bij System.Windows.Forms.TabPage.set_Visible(Boolean value)
           bij System.Windows.Forms.TabControl.UpdateTabSelection(Boolean updateFocus)
           bij System.Windows.Forms.TabControl.OnHandleCreated(EventArgs e)
           bij System.Windows.Forms.Control.WmCreate(Message& m)
           bij System.Windows.Forms.Control.WndProc(Message& m)
           bij System.Windows.Forms.TabControl.WndProc(Message& m)
           bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
           bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
           bij System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
           bij System.Windows.Forms.UnsafeNativeMethods.IntCreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
           bij System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
           bij System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
           bij System.Windows.Forms.Control.CreateHandle()
           bij System.Windows.Forms.TabControl.CreateHandle()
           bij System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
           bij System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
           bij System.Windows.Forms.Control.CreateControl()
           bij System.Windows.Forms.Control.WmShowWindow(Message& m)
           bij System.Windows.Forms.Control.WndProc(Message& m)
           bij System.Windows.Forms.ScrollableControl.WndProc(Message& m)
           bij System.Windows.Forms.Form.WmShowWindow(Message& m)
           bij System.Windows.Forms.Form.WndProc(Message& m)
           bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
           bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
           bij System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
           bij System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
           bij System.Windows.Forms.Control.SetVisibleCore(Boolean value)
           bij System.Windows.Forms.Form.SetVisibleCore(Boolean value)
           bij System.Windows.Forms.Control.set_Visible(Boolean value)
           bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
           bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
           bij System.Windows.Forms.Application.Run(Form mainForm)
           bij Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DisplaySplash()
           bij System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           bij System.Threading.ExecutionContext.runTryCode(Object userData)
           bij System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
           bij System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
           bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
           bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           bij System.Threading.ThreadHelper.ThreadStart()
      InnerException:
    ik heb al alles terug gezet naar hoe die het nog wel werkte.

  2. #2
    Giga Senior JoZ1's avatar
    Geregistreerd
    17 december 2010
    Locatie
    Nieuwegein
    Afstand tot server
    ±90 km
    Ja, je mag niet vanuit andere threads dan de oorspronkelijke thread componenten aanpassen




    "Microsoft is not the answer. Microsoft is the question. NO is the answer."- E. Naggum

  3. #3
    Senior Member m4dc0w344's avatar
    Geregistreerd
    8 augustus 2011
    Locatie
    den haag
    Afstand tot server
    ±111 km
    ja dat had ik ook gelezen :3
    maar mijn gedachten was "... uuu...."en meer niks dus ik begreep niet echt wat ze daar me bedoelen
    is moet ik misschien het project uploaden zodat jullie misschien het makkelijker kunnen zien wat ik bedoel

  4. #4
    Giga Senior JoZ1's avatar
    Geregistreerd
    17 december 2010
    Locatie
    Nieuwegein
    Afstand tot server
    ±90 km
    De code is ook al goed




    "Microsoft is not the answer. Microsoft is the question. NO is the answer."- E. Naggum

  5. #5
    Senior Member m4dc0w344's avatar
    Geregistreerd
    8 augustus 2011
    Locatie
    den haag
    Afstand tot server
    ±111 km
    hee hij doe het weer!
    ik weet niet wat ik heb gedaan maar hij geeft nu die error niet
    toch bedankt voor jullie andacht!

  6. #6
    Giga Senior JoZ1's avatar
    Geregistreerd
    17 december 2010
    Locatie
    Nieuwegein
    Afstand tot server
    ±90 km
    Ok




    "Microsoft is not the answer. Microsoft is the question. NO is the answer."- E. Naggum

Berichtenregels

  • U mag geen nieuwe discussies starten.
  • U mag niet reageren op berichten.
  • U mag geen bijlagen versturen.
  • Umag niet uw berichten bewerken.
  •  
Helpmij.nl
Helpmij.nl

Helpmij.nl en business

Partners
Sponsoren
Linkpartners
Aanbiedingen