visual studio 2010 - Self-Restarting application crashes under certain circumstances -


i use restartapi restart application if need reload it. works fine until launch windows dialog (e.g. open dialogue), ends open button being clicked! in case, if later choose restart new application (after restarting) not able open files. if click cancel button new restarted application work fine.

it took me long time figure out difference between 2 restarts open button open dialog unrelated application restart. note have eliminated code gets executed after open button clicked there's no way caused memory corrupting code open button initiates.

it enough click open button once (so may 5 times click cancel once open , example 3 times cancel) , attempt restart application "late" result in new instance not being able open files (not std::ifstream).

some details:

  • visual studio 2010
  • windows 7 x64 (but 32bit xp same)
  • the dialog launched in separate thread
  • i use allegro 5.0 graphics should not related
  • the dialog launched getopenfilename function

i don't know restartapi, can create temporary batch file restart process without problems.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -