I have been using a program that incorporates code from an old CVF Samples program, PeakApp3, that uses a 2nd thread initiated with this:
MODULE PEEKAPP_myversion
USE DFMT
:
CONTAINS
SUBROUTINE PeekStart
:
ThreadHandle = CreateThread (0,0,GetCharProc,%loc(unit,Create_suspended, thread_id)
:
It has been working fine, but I had always limited it to Debug build. When I try a release build, I get a compile error#6284 "There is no matching specific function for this generic function reference [CREATETHREAD]. There is also "error #7002 Error in opening the compiled module file. Check INCLUDE paths. [PEEKAPP_myversion]", but I had cured this (at least in Debug mode) by including the module .f90 file as part of the project in VS.
Why does this cause trouble in Release but not in Debug?
This is a Quickwin project, and the runtime library is /libs:qwin in both modes. Is the problem somehow related to single-thread vs. multi-thread libraries?