Many years ago there was a product named BoundsCheckerby a company called NuMega. An excellent product. Some years ago this company was purchased by Compuware and they continuedoffer a product of the same name, but from my understanding, the original development team was not acquired or kept on board. As a resultcontinued development faltered. I have not recently used the Compuware version so I cannot attest for its features or capabilities or ifCompuware has re-assembled a top-notched development team for this product.They may have a trial version for you to use.
If you need any help in locating difficult bugs, maybe I can help you further.
Hi Rashed - have you tried some of the tools that are around for cluster developers - like Allinea's DDT (www.allinea.com) - that has a memory debugger for fortran, C and C++ that seems to do just what you ask for. There are other products from other companies too, but I've not tried those.