Hello,

Referenced memory error in visual c++ .exe file.
When i was run my program's .exe file (program written by visual c++ 2008 win32 windows application), it could work fine. but problem is when i click a button for executing something and display on the window screen (otherwise it works well), it shown following message:

Application Error
" The instruction at "0x7c91072f" referenced memory at "0x0037e28d". The memory could not be "read". "
Click on OK to terminate the program
Click on CANCEL to Debug the program

I could run the application with no problem in visual c++ 2008 environment.

Could anybody help me, how to solve the problem.

Thanks in advance.

Show us the code for the button handler.

Are you trying to run the executable on the development PC, or on a different one?