C# Application.Restart() does not restarting the application...
Posted on 2008-06-16
I wrote the C# application and i want it to restart is from scratch if some conditions satiesfied. I can see that even if calling to Application.Restart() function, the following activities are continues and i has to exit the execution instance of the application. Is this a expected behavior? I dont think so it should terminate the current instance and start immediately new instance of an applicatiion.
.....Still comming here and doing the task....I have to write Environment.Exit(1) to exit the current instance...
Could any one please suggests me what wrong is here,