hello,
I am storing some of my GUI settings in config file which is accessible to user. If user changes the settings then application has to be restrted with the updated settings.

As soon as settings are changed and saved i am doing Application.ExitThread();
and calling Application.Restart();

I found that Application.Restart() is not consistent. I am facing two problems here:
1). Some times it does not reflects the updated settings to config file before restart and start with previous settigns only.
2). Some times it doesn't terminate the current aprocess before starting the new application process.

Is there any better way to use Application.Restart() or so simply to restart the application?

Thanks.