- 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
"Supposed to work"? No. We never documented nor supported the notion of users replacing run-time library routines. Fortran is not C.
That said, I don't spot an obvious reason why it should not work if you do it right. _for_stop_core is still the routine being used (the leading underscore being the standard name decoration and it's the same as CVF.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve. Perhaps "supposed to work" was an injudicious choice of words - you've answered my question. I don't think I'm doing anything differently than I did with CVF, but it doesn't seem to be getting to that routine. I even specify CVF external calling conventions in the builds, just to eliminate one source of change. I can certainly dig harder - I just didn't want to be wasting my time if this technique just wasn't going to work anymore.
That said, is there a more standard way of capturing program termination? We track time used by users, and it's easy to find out when it starts, but a bit more problematic to find every way it can stop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Note that the RTL routines, such as for_stop_core, use the C calling convention, even in CVF.
I'm not familiar with doing termination handlers on Windows. This MSDN article looks interesting, but it seems you'd have to write a C++ wrapper around your program to use the technique.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page