- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This might be a problem with the type information for your structure in the pdb file, especially if you made any changes to your structure. Perhaps if you delete and recreate the pdb file when you rebuild?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the suggestion. I tried it, but it didn't seem to make any difference. I still get the same error about OMF type. I have not knowingly changed anything involving the types. Is it possible I messed up something else, and memory is getting clobbered?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does your code actually fail, e.g. if you run it without debugging, or is this just a debugging problem when you try to look at local variables?
Array bounds checking and traceback should be on by default in a debug build. You could turn on interface checking at compile time (Fortran/Diagnostics/Check Routine Interfaces) just in case. It's unclear, though, why these sorts of errors would lead to CXX0033.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I changed Fortran/Run time/run time error checking from None t All, but this didn't make any difference, and didn't turn up any noew errors.
The code will run outside the debugger, but produces garbage. Lots of NaN.
I have no idea what the error message means. Do you know what "OMF type information" is?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just a suggestion but perhaps copy the sources to a clean folder and make a new solution and project from scratch perhaps? I spent a long time trying to find a problem recently and this worked,..... Something is maybe screwed up (corrupt) ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I googled your fail (what did we do before google?)
Anyway, the hits all showed an old Microsoft C/C++ bug with debug information for precompiled headers.
Now, .mod files are very similar in some aspects to precompiled headers, so it's possible that something happened while building one or more of your .mod files, that dropped invalid data into your .pdb file.
I know you said you deleted the .pdb file and rebuilt, but can try doing a more extensive clean with a full rebuild? Use Windows Explorer or a command window to confirm that all .obj, .pdb, .mod files are removed before starting the rebuild. There are two pdb files created, please make sure both of them are gone.
If all else fails, you can shut off pdb file creation, and use the /Z7 command line switch. I don't see a property page item that corresponds directly to /Z7 (which means C7-compatible) so you will have to use the "Command Line" page and add it manually.
I hope this helps -
--Lorri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried build, rebuild, clean, deleting the pdf files, etc., but none of these made any difference whatsoever.
To rebuild the sln from scratch will take some doing, but I guess that's all that's left. I did not create it, and it has a dozen subprojects in it. Sometimes ya just gotta hate computers.
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Given that there's a CXX error showing, I wonder if the Fortran debug support is loading. Can you try a new, simple Fortran project and see if the Locals window looks right? Look for Fortran datatypes and not C types in the display.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Something seems to be messed up.
From the Samples collection I loaded matrix_vector_multiplication_f.sln
I set a breakpoint on the first line which is a = reshape(...)
Press F5, and it stops on this line.
In the locals window, arrays B and C are there, but A is not. I don't see any reason why A should not be there.
Should I remove and reinstall Visual Studio 2012?
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I doubt a reinstall will help. Please give us a test case we can look at.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't see any of this behavior. I just opened the sample solution, which got converted for VS2012. I compiled the debug Win32 version and the debugger worked as expected. In the Locals window, data types were REAL(4) for A,B,C, REAL(8) for CPTIM1,CPTIM2, INTEGER(4) for I,J,SIZE1, SIZE2. What data types do you see? (Steve's question).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try uninstalling and reinstalling Fortran.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Inspector is uninstalled.
Fortran is now being uninstalled. That will take a while. The "repair" option was not available because it said it did not detect installation media.
Is there anything I should wipe out before reinstalling?
Thanks,
Brrian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would delete the "Intel Fortran" folder under the Program Files (x86)\Microsoft Visual Studio 11.0 folder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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