- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Steve;
This problem has been covered, but I cannot achieve the answer you got. If I build a console app with this code:
program testinputconversionerror
Character*1 cdum1
Integer iwant
cdum1 = 'a'
Read(cdum1,*)iwant
Write(6,*)iwant
end
and run it, I get the expected input conversion error. The error on the command line shows the attached screen shot and the debugger in VS2015 goes to the 'no symbols loaded' window (shown in attached zip). Why doesn't the debugger show the line of code in the studio? Please let me know. Thank you.
Sincerely,
CHobbs
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>>VS2015 goes to the 'no symbols loaded' window
Are you building the Debug version?
If the error occurs in the call stack at a depth inside a library, then you will see 'no symbols loaded'...
... for the library. What you need to do then is to look in the Call Stack window (open if necessary), then click on an/the upper level that represents code of your program.
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Jim;
Hello. Thank you for the quick reply. I opened the stack window, but cannot find anything in the upper level that you are referring to. A screen shot is attached. Is what you are talking about visible? Please let me know. Thank you.
Sincerely,
CHobbs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are not seeing any screen snaps or attachments. Can you retry attaching those?
- 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
Your .png shows Platform as x86.
Create a new Solution and Project as Win32, run a test. if that works, you can create a new platform of x64 if you have a 64-bit CPU.
The Platform x86 is generally used for C# and other like systems where you want a generic "8086" derived CPU of any type. Fortran expects either IA32 (Win32) or Intel64 (x64), but not both (to be determined at runtime)
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good eye and suggestion Jim. I can't determine how x86 can be setup for a Fortran project.
Chris - how did you create your console1 project?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the suggestion, Jim. I did not do anything other than select a console, fortran application in the VS2015. Attached is the config manager that leads to the x86 showing in the window. It seems to indicate that I am making a Win32 app. Problem is, not of the selections allow me to change to anything. They just say <New> or <Edit> when I try to change any of the entries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It worked when I set the platform to x64! Not sure why it didn't with the x32, but the debugger put me at the line in the source code where the offense occurred. Thank you, Jim!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can recreate this issue now, thank you. Under VS2015, new Fortran Console projects (at least) set the default Active solution platform to x86 instead of Win32. I have escalated this to our Developers.
You can create the Win32 solution platform type the same as is done to create the x64 type. Open Build > Configuration Manager, in the Active solution platform selection click <New>. For new platform select Win32 and in Copy Settings from select x86, then click OK. This creates the Win32 configuration. To avoid confusion delete the x86 configuration (via Configuration Manager, in the Active solution platform selection click <edit>, left-click x86 to select and then click Remove)
(Internal tracking id: DPD200417048)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page