Bonjour,

Depuis ce matin, il m'arrive un truc bizarre. Quand je ferme mon programme développé en C#, je ramasse une erreur au moment où le code sort du Main.

{"Impossible d'appeler Invoke ou BeginInvoke sur un contrôle tant que le handle de fenêtre n'a pas été créé."}

à System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
à System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args)
à System.Windows.Forms.WindowsFormsSynchronizationContext.Post(SendOrPostCallback d, Object state)
à System.Windows.Forms.AxHost.ConnectionPointCookie.Finalize()

Vu que ça passe après le Application.Run() de ma Form principale, comment pourrais-je faire pour trouver l'origine du problème ?

Papy !