A Bug in Release version of VC++
-
I am having a video decoder application for which I prepared a Release version. The program crashes with a message "The instruction at 0x77fc8e1 referenced to a memory 0x0000001 which could not be written. I inserted AfxMessageBox() at different points and finally found the bug pointing to a memory freeing portion. But if I remove one AfxMessageBox() the error code changes(0x0000001 becomes 0xfffffff). If I reposition the code then error occurs for some other memory freeing block. Has anyone come across such a behaviour. If so I need valuable suggestions.
-
I am having a video decoder application for which I prepared a Release version. The program crashes with a message "The instruction at 0x77fc8e1 referenced to a memory 0x0000001 which could not be written. I inserted AfxMessageBox() at different points and finally found the bug pointing to a memory freeing portion. But if I remove one AfxMessageBox() the error code changes(0x0000001 becomes 0xfffffff). If I reposition the code then error occurs for some other memory freeing block. Has anyone come across such a behaviour. If so I need valuable suggestions.
This article[^] could be helpfull.
Cédric Moonen Software developer
Charting control [v1.2 - Updated] -
This article[^] could be helpfull.
Cédric Moonen Software developer
Charting control [v1.2 - Updated] -
I have gone through this article. The only possibilit that may occur for me is uninitialized local variables and bound errors. I have done with those except for a small doubt. How to initialize pointers such as int *temp_array and int **double_array.
jossion wrote:
How to initialize pointers such as int *temp_array and int **double_array
int *temp_array pTemparray = NULL; int **double_array pDoublearray = NULL;
Failure is not an option - it's built right in.