Using a very simple programme (below) the app becomes unresponsive for a few to tens of minutes at a time on launch when the stack size is increased.
I do not see any CPU or memory increases in the Windows Task Manager though.
WINAPP 'CWP_ICO.RC'
PROGRAM factor1
IMPLICIT NONE
INCLUDE <windows.ins>
INTEGER ans
ans=winio@('%ca[Number Factoriser]')
END
This seems be to be occurring when the first Windows API call is made (in this case, winio kicks off the calls). Is this because the app is being relocated in memory to avoid conflicts with the DLLS?
Linking with this causes the problem (the stack size is from a real app, hence the reason for testing with this);
slink factor.obj -STACK:0x40000000
Linking with this runs OK and is responsive immediately;
slink factor.obj
This is a problem we are having in some older code that uses a lot of stack space (hanging on startup) and I have reduced it to this in an attempt to find a fix.
I assume I am doing something silly, can anyone shine any light on this? I'm hoping I can specify an origin / code base and avoid what I think might be code relocating itself in memory.
Thank you in advance.
Ryan