How to use ThreadException?
I tried using http://msdn.microsoft.com/en-us/library/system.windows.forms.application.threadexception.aspx#Y399 but when I do this throw new ArgumentNullException("playlist is empty"); I get nothing. I bet I'm missing something very obvious. here is my code. using System; using System.Security.Permissions; using System.Windows.Forms; using System.Threading; namespace MediaPlayer.NET { internal static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] [SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.ControlAppDomain)]