- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page