Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

NULL pointer in _f90_pcheck

Intel_C_Intel
Employee
551 Views
My setup:
- Intel Fortran 6.0
- ATL COM EXE server
- 1 ATL Simple Object
- A thread created in the object?s FinalConstruct
- An aircraft simulator in Fortran


I have placed all the calls to the Fortran code in the thread. As soon as execution enters the Fortran code, an invalid memory(NULL pointer) access occurs in _f90_pcheck. I am not sure what this function does, but it is called at the beginning of my subroutine before compiled code. I am forcing the link to the static MT libs, and workspace wide I am sure that my MT flag settings are consistent. I can call the same code outside of the thread successfully. What direction can I go in to understand and fix this problem?

Jon
0 Kudos
1 Reply
Steven_L_Intel1
Employee
551 Views
I think what you're seeing is a run-time check for pointer validity prior to use of a pointer, and it is complaining that you're about to reference a pointer with a NULL value.

Steve
0 Kudos
Reply