Bonjour,

J'ai une application qui crée plusieurs threads et dont le main est le suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[STAThread]
static void Main()
{
	try
	{
										// Create the main window
		Main mMain = new Main();
		// Load the plugin interface
		mMain.LoadInterface();
		// Load the configuration
		mMain.LoadConfiguration();
		// Show the main window
		mMain.Show();
 
		Application.Run(mMain);
	}
	catch(Exception eException)
            {
		// Display a message
		ErrorMessage.Show(eException)
	}
}
La fenêtre principal appel un composant qui crée plusieurs threads, le problème est que si une exception est levée dans un des threads, elle n'est pas catchée par le try catch du main.
Est ce normal?
Comment puis je faire pour catcher les exceptions levées par les threads?

Merci pour votre aide