- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My current ide is Microsoft VS2022 v. 17.9.2. I have some old working code which I can compile and launch, but the code bonks in debug mode when it reaches the line
LARGE_RESULT = GETWSIZEQQ(0_4, QWIN$SIZEMAX, WINFO)
All variables are declared as follows:
Module level:
USE IFQWIN, ONLY : QWINFO
TYPE (QWINFO) :: WINFO
Routine level:
USE IFQWIN, ONLY : GETWSIZEQQ
USE IFQWIN, ONLY : QWIN$SIZEMAX
INTEGER (KIND = 4) LARGE_RESULT
The complaint is forrtl: error(65): floating invalid. What?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We'll need to see a reproducer, as small as you can manage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve Lionel:
Thanks for the prompt response. I am finding it difficult to create the reproducer. I strip down the code to bare bones, but then it does not bonk. I try adding things, but none seem to cause the grief.
The only noteworthy thing I can report is, when I look at the debugger on the line in question and add a watch for the symbol
QWIN$SIZEMAX
it says it is undefined. That is unexpected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By default, debug symbols for PARAMETER constants are omitted. You can change this in the project property page Fortran > Debugging. However, I find that the symbols aren't there no matter what.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve Lionel:
Thanks for the quick response. I will continue working on the reproducer.
The other feature here is the code is apparently running "properly" in Release mode. Just ran through an array of unit tests without issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Although it is not a great solution, and as long as the code can be in the public view, zip up the whole lot and put it on the forum. Some one can then try it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a reproducer. I believe it has something to do with the compile/build options I have. In Compatibility, I am using the options
Use PowerStation I/O Format
Use PowerStation List Directed I/O Spacing
Use Other PowerStation Run-time Behavior
I have attached a zipped version of the project/solution.

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