- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I recently switched from Vista Ultimate to Windows 7 Enterprise on the same 64-bit machine. I am using Intel Visual Fortran Compiler bondeled with VS2005. After all hasels to make it run and debug (i mean remote debugger issue). It gives me the following errorr when i try to run a code that previuosly was running on the same machine and compiler:
Unhandled exception at 0x00407dfb in min3pmcd.exe: 0xC0000005: Access violation reading location 0xfffffff9162b49d0.
or
Unhandled exception at 0x00407d0c in min3pmcd.exe: 0xC0000005: Access violation reading location 0x0000000031cf2378.
I use exactly the same compiler setting as before. The problem is when I run my program for a 1D problem (it is fluid dynamic simulator) it runs without any problem but as soon as i swith to 2D or 3D it crashes and gives the following error.
Here are are compiler settings:
/nologo /debug:full /Od /gen-interfaces /module:"x64\\Debug\\\\" /object:"x64\\Debug\\\\" /traceback /libs:static /threads /dbglibs /c
I already know that it may come from conflicts between the way that arreys are defined, but if this is the case whay the same code ran on my previous OS?
any help is highly appreciated.
Unhandled exception at 0x00407dfb in min3pmcd.exe: 0xC0000005: Access violation reading location 0xfffffff9162b49d0.
or
Unhandled exception at 0x00407d0c in min3pmcd.exe: 0xC0000005: Access violation reading location 0x0000000031cf2378.
I use exactly the same compiler setting as before. The problem is when I run my program for a 1D problem (it is fluid dynamic simulator) it runs without any problem but as soon as i swith to 2D or 3D it crashes and gives the following error.
Here are are compiler settings:
/nologo /debug:full /Od /gen-interfaces /module:"x64\\Debug\\\\" /object:"x64\\Debug\\\\" /traceback /libs:static /threads /dbglibs /c
I already know that it may come from conflicts between the way that arreys are defined, but if this is the case whay the same code ran on my previous OS?
any help is highly appreciated.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is quite common for hidden bugs to surface when a different OS or a different compiler is used, or the compiler options are changed.
It is the nature of hidden bugs to be invisible most of the time.
It is the nature of hidden bugs to be invisible most of the time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I already solved my problem:))))))
you need to change the following:
Project->Properties->Fortran->Data->Initialize Local Scalar Variables.
or add options (type) to
Project->Properties->Fortran->Data->Command Line
and
Set the Data > Local Variable Storage property to "All variables SAVE".
you need to change the following:
Project->Properties->Fortran->Data->Initialize Local Scalar Variables.
or add options (type) to
Project->Properties->Fortran->Data->Command Line
and
Set the Data > Local Variable Storage property to "All variables SAVE".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, that sort of "papers over" the problem. The real problem is that you have incorrect code that assumes that variables are initialized to zero. But typically the change you made would not fix an access violation. Is this code a mix of Fortran and C? Or do you have code that deals in addresses?

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