I am getting Error "An unexpected error has occurred in .exe file select quit & restart"

I am using VF50 module & WinCE NK7 image. My exe size is increased to 30mb. Now if I am adding any routine I get error of memory size. error. So I had changed System properties → Memory. But during Execution I am getting error from my previously working routine also. Error is “An unexpected error has occurred in .exe file select quit & restart”.& after clicking details I got message " .exe exception at Microsof.AGL.Common.Misc.HandleArr()

Dear @Madhav,

Could you try thiis registry way of memory division : https://developer.toradex.com/knowledge-base/set-memory-division. If it doesn’t solve the issue then Could you share the executable application with us? It will help us to reproduce the issue and find a solution.