L'exception System.InvalidOperationException n'a pas été gérée
Message="Opération inter-threads non valide*: le contrôle 'Label25' a fait l'objet d'un accès à partir d'un thread autre que celui sur lequel il a été créé."
Source="System.Windows.Forms"
StackTrace:
à System.Windows.Forms.Control.get_Handle()
à System.Windows.Forms.Control.set_WindowText(String value)
à System.Windows.Forms.Control.set_Text(String value)
à System.Windows.Forms.Label.set_Text(String value)
à Contrôle_de_production.Accueil.SerialPortBalance_DataReceived(Object sender, SerialDataReceivedEventArgs e) dans C:\Documents and Settings\alain remy\Bureau\Contrôle de production\Contrôle de production\Contrôle de production\Form1.vb:ligne 285
à System.IO.Ports.SerialPort.CatchReceivedEvents(Object src, SerialDataReceivedEventArgs e)
à System.IO.Ports.SerialStream.EventLoopRunner.CallReceiveEvents(Object state)
à System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
à System.Threading.ExecutionContext.runTryCode(Object userData)
à System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
à System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
Partager