Yoav

Yoav

  • NA
  • 27
  • 0

Error when sending over 28 files to args

Apr 20 2007 2:55 AM
Hi I got a small app that receives a string array with file names. If i send up to 28 file names every thing is ok. If I try to send 29 or more I get this error message: "Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item" And the app closes. It doesn't even enter the app or the try/catch should have caught it. Any ideas please? This is the startup class. I don't know how to make this board display it properly: This is the startup class: static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main(string[] args) { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new frmMain(args)); } catch (Exception e) { MessageBox.Show(e.Message); } finally { Application.Exit(); } } }

Answers (1)