Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Memory Clobber

Kipling__Michael
Beginner
700 Views
Hi All,

I have a program with CPP calling C & FORTAN,C calling FORTRAN & Fortran calling C. It's a very large program developed with VS2005 & IVF 11 on a 32 bit machine.

My IT department decided that I should be upgraded to a 64 bit machine.

I've finally gotten the program to build, but when I run it crashesthe secondtime a FORTRAN routine is called (the routine is called twice in a loop from C).

It crashes the first time a local character variable is initialized with a "Unhandled Exception : Access violation writing location 0x00000000."

I'm guessing that memory has been overwritten somewhere, and I'm guessing I'll have to move line by line to try to find it. However, I'm just not sure I'll recognize it when I see it, since it will not fail there.

Any suggestions?

Mike

I
0 Kudos
1 Reply
Steven_L_Intel1
Employee
700 Views
Did you also rebuild the application as a 64-bit app? You didn't need to do that, but if you did, any character lengts passed from C need to be 64-bit (size_t) rather than just int.
0 Kudos
Reply