Since moving to Windows 7, I have had problems with get_filtered_file@ when used in programs with large arrays (typically 500mbytes).
The dialigue box open ok, with all the filters set, set correctly. But, I find the edit box into which the file name is entered locks up when the <cr> key is pressed.
It makes no differnece wether the array is declared in common or the allocate command is used to set the array size.
I see from the forum that others are experincing problems wth large arrays. Does anyone els have this problem.
Here is the code
MODULE DATA32
INTEGER*4, DIMENSION(:),ALLOCATABLE::DATA
END MODULE DATA32
USE DATA32
WINAPP
PARAMETER(MBYTES=700)
PARAMETER(MILLION=1000000)
CHARACTER file*129,title*20,path*129
INTEGER NFILTERS
PARAMETER(NFILTERS=1)
CHARACTER*20 filtname(NFILTERS),filtspec(NFILTERS)
c------------------------------------ C*** allocate mbytes to array data ALLOCATE(DATA(MBYTESMILLION/4),STAT=istatus) IF(ISTATUS.NE.0)STOP 'CANT ALLOCATE MEMORY' c** populate array do j=1,mbytesmillion/4 data(j)=j enddo C*** Use clearwin - get_filtered_file title='Open Bitmap File' file=' ' path=' ' filtname(1)='All files' filtspec(1)='.' CALL get_filtered_file@(title,file,path,filtname,filtspec, * NFILTERS,1) END