- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is really just a question, rather than a problem.
While trying to solveother problems converting projects from CVF to IVF, I found that some of my problems were caused by a fundamentally different default behavior between the two regarding variable saving. Thanks to this forum, BTW -- I never would have figured that out without the information transfer here.
However, I didn't see a reference to resolving this issue, which certainly comes up when migrating CVF to IVF. So I have to ask:
CVF's default seems to be IVF's optional "/Qsave". If this is the case, shouldn't the IVF converter automatically add the "/Qsave" compiler option to its converted projects? Or has this behavior already been changed since I converted these projects a couple years ago?
-Dan Hoyt, Senior Systems Architect, Technology Service Corp, Colorado Operations
Link Copied
- 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
* which calling convention to apply (CVF or default), as well as string passing
* whether to apply /Qsave as well
* to which .h files the automatic conversion to .fd should be performed (yes, I often have auxiliary .h files in the project that I don't want to convert)
- 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
Is it a bug or is it a feature?
Is there a compiler option which is equivalent to the option "All Variables SAVE (/Qsave)" of version 9?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know if 9.1 behaves properly in this respect.
And since you've done the favor of resurrecting this thread, I'll mention that as of version 11, converting a CVF project does enable /Qsave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know if 9.1 behaves properly in this respect.
And since you've done the favor of resurrecting this thread, I'll mention that as of version 11, converting a CVF project does enable /Qsave.
'If an allocatable array does not have the SAVE attribute, it has the status of "not currently allocated" at the beginning of each invocation of the procedure. If the array's status changes to "currently allocated", it is deallocated if the procedure is terminated by execution of a RETURN or END statement'
There is no word that compiler settings may modify the above rool of code interpretation.
A similar statement can be found in the IVF11 help article "Deallocation of Allocatable Array"...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately, there is not a switch that matches the CVF semantics of local, non-allocatable variables being SAVEd. The simplest thing, I suppose, is to turn off the /Qsave option (it is just set when converted, you can turn it off) and then add SAVE to any variables that should have it.
I'll look at the places you note and see if they need to be corrected. Sorry for the troubles - our intentions were good.

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