Exe works in Debug mode but crashes on running directly

Hi
I have some problems with running a .exe file of a mfc sample directly.
When I use the 'Start Debugging' option everything works fine.
But when I try to open the .exe from the folder directly, it opens, but clicking on a button it crashes.

Does anyone have some idea about this?
Thanks

Regards
Nitin

Saneesh Kumar's picture

Hi
Try to copying all the dll's from "\ros\win32\bin" to the debug folder

Nitin's picture

Hi Saneesh
Thanks for the reply.
Well I copied the dlls but still the same problem. Its not that all buttons don't work. It is only some buttons for which I edited the code that are not working. But again everything works fine with the 'Start Debugging' option.

Regards
Nitin