I am attempting to troubleshoot a problem with our application that only occurs on a particular server belonging to one of our customers.
The application sometimes crashes, and the core files are showing an illegal memory access. I suspect the reason for that is some kind of failure with the malloc function. It is probably returning a NULL pointer, but when this occurs the machine still has plenty of free memory. My theory is that the memory was too fragmented, and when it tried to allocate some more memory (18MB), it may have failed.
What steps can I take to troubleshoot this problem? For example, does Windows log any information when a memory allocation fails? Or does it just ignore it?
The server in question is running Windows Server 2008 R2 and the Windows Event Log service is running.
At this point I can't include any code, because I don't know what part of the application is causing the problem. How can I narrow this down?