Hi, I've searched long and hard for a discussion of or solution to this problem, so I don't think it's been addressed before.
I've written a few tools using ClearWin+ that involve selecting a number of files before using the data in them. On my old Windows XP computer, all went well. When I moved to Windows 7 64-bit, a problem appeared. As I click on a series of buttons with FILE_OPENR callbacks, on the sixth button the program freezes for about 30 seconds to a minute before the file selection box pops up. Then on the sixth button after that the same thing happens, etc. If I click on anything in the program window during the freeze I hear a beep, as if a buffer somewhere is full and not accepting input.
As you can imagine, when using a tool with up to 77 files that have to be selected, this can be quite annoying!
Other people I've shared my tools with have reported the same problem when running on Windows 7. I don't know if they're all 64-bit.
Here's a small demo program that exhibits this behavior:
WINAPP CHARACTER*250 fdds(12)
do i=1,12 fdds(i) = ' ' end do
i=winio@('%ww&') i=winio@('%ft[All files][.]&') i=winio@('%ob[named_l][Select files for test]&')
do j=1,12 i=winio@('%`8?ws@ %?48rs@ &','test','test',fdds(j),'test') i=winio@('%^bt[Select file] %ff&','FILE_OPENR[test]',fdds(j),'CONTINUE') end do
i=winio@('%cb') END
Am I doing something wrong or is there a problem with the callback?