omessian

omessian

  • NA
  • 6
  • 0

Strange crash of web app caused by array initialization

Oct 14 2004 10:25 AM
hi, i'm wondering if i've come across a bug in the 1.1 framework. after successfully compiling a piece of code where an array is initialized at the point of definition, the aspnet_wp crashes on the web server. for example, tests with either statement int[] foo = new int[5]{0,1,2,3,4}; or int[] foo = {0,1,2,3,4}; result in the following system error being returned (outside of the page): An unhandled exception of type 'System.ExecutionEngineException' occurred in mscorlib.dll doing a refresh on the page will return the runtime's custom error page which flags an error in the machine.config file. the work around for initializing the array is trivial. however, i'm curious about why the legal shorthand syntax above causes the crash. is there some issue with memory corruption when the app is launched?