Hello, the following application hangs when assigning an array element (on my system indices above 1100 hang, below 1000 it works fine). Characteristics of the program: OpenGL-window (on nVidia it hangs, ATI and possibly non-gamer nVidia cards seem to be fine), virtual common is used (otherwise it works flawless) Steps to reproduce: click on menu item, click on SetVal button, application hangs (noted by not being able to use the Close button which otherwise works) Tested on several systems, latest ftn95 including the beta salflib.
Source (tester.f95):
module DataMod
real*4, dimension(5000) :: tmp
end module DataMod
program tester
external MenuItem
integer*4 :: iw, MenuItem
iw=winio@('%og&',640,480)
iw=winio@('%mn[MenuItem]',MenuItem)
end
integer*4 function MenuItem()
implicit none
integer*4 :: iw
external :: SetVal, CloseWin
integer*4 :: SetVal, CloseWin
MenuItem = 2
iw=winio@('%^6bt[SetVal] &',SetVal)
iw=winio@('%^6bt[Close]',CloseWin)
end
integer*4 function SetVal()
use DataMod
SetVal = 2
tmp(1:5000) = 0.0 ! application hangs here
tmp(1111) = 0.0 ! same effect
end
integer*4 function CloseWin()
CloseWin = 0
end
Linkfile:
lo tester.obj
vc
file tester.exe
Thanks!