replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Windows 7 Problems with GET_FILTERED_FILE@
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Windows 7 Problems with GET_FILTERED_FILE@
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
acw



Joined: 04 Nov 2005
Posts: 165
Location: Darkest Devon

PostPosted: Mon Nov 30, 2009 4:26 pm    Post subject: Reply with quote

No previewers on, just plain old Win 7. I have another slightly larger app that's part of our commercial release. I can get it to reliably cause problems on several PCs, although it does seem to be related to a combination of library size and exe size/DLL complexity.

I tried to PM you a link (rather not put it up here as it includes a third part commercial lib license) but for some reason I can't send you any messages (I get an error from phpBB: "Ran into problems sending Mail. Response: 503 Bad sequence of commands. DEBUG MODE. Line : 185 File : smtp.php")- any suggestions ?

BTW. Did anything come of Paul's suggestion on DLL base address, or you're comment on DLLs not unloading properly ?

Cheers,
Alan
Back to top
View user's profile Send private message Visit poster's website
Robert



Joined: 29 Nov 2006
Posts: 460
Location: Manchester

PostPosted: Tue Dec 01, 2009 7:11 pm    Post subject: Reply with quote

You can always email ftn95@silverfrost.com.

I assume this all runs happily under sdbg? sdbg is stricter about system exceptions (that are sometimes ignored).
Back to top
View user's profile Send private message Visit poster's website
acw



Joined: 04 Nov 2005
Posts: 165
Location: Darkest Devon

PostPosted: Thu Jan 14, 2010 2:53 pm    Post subject: Reply with quote

Sorry about the delay on this - it's quite difficult to get any consistency with this problem. It hasn't gone away though, but as I mentioned before seems to be linked to the size/complexity of the Documents library plus the executable.

I have run the earlier test program in sdbg and under my profile it crashes having created the file open dialog window, but not populated it (you see the outline of the window, sometimes with the root nodes of the left hand tree present). This occurs on three different Win7 computers (x64 & x86) - it's an exception within ntdll.dll (Exception 0x000006BA... most of the time !). However, if I log on with another account it generally works okay. Doing exactly the same thing in XP works absolutely fine.

I'm not sure where to go from here if you can't repeat the problem at all - hope something similar crops up elsewhere I suppose.
Back to top
View user's profile Send private message Visit poster's website
Steve



Joined: 23 Feb 2007
Posts: 73

PostPosted: Mon Jun 28, 2010 4:24 pm    Post subject: Reply with quote

Robert,

We too are finding that using Get_filtered_file@ on W7 the PC occasionally waits before presenting the windows file dialog. Once control is back with the application the next gff call may be fine, then the next gff will require a wait again.

The W7 PC can be 32 bit or 64 bit.

This is unacceptable for our users who are not sure whether the application has hung.

Are you still none the wiser what is happening ?
Back to top
View user's profile Send private message
IanLambley



Joined: 17 Dec 2006
Posts: 506
Location: Sunderland

PostPosted: Mon Jun 28, 2010 11:20 pm    Post subject: Reply with quote

Have you tried running the executable in XP compatibility mode?

Right click on the executable or its shortcut and select the compatibility tab and check the appropriate box and mode.
Ian
Back to top
View user's profile Send private message Send e-mail
lozzer



Joined: 27 Jun 2007
Posts: 49

PostPosted: Tue Jun 29, 2010 7:51 am    Post subject: Re: Reply with quote

IanLambley wrote:
Have you tried running the executable in XP compatibility mode?

Right click on the executable or its shortcut and select the compatibility tab and check the appropriate box and mode.
Ian


Good suggestion, but I have just tried that and it makes no difference.

I believe that our next step is to try and use a Windows API call from our own DLL written in Delphi or something similar.

We have in excess of 2,500 customers and a large percentage of them will be on Windows 7 in the next year or so. It's disappointing that we continue to experience fundamental problems such as this.
_________________
Lozzer
Back to top
View user's profile Send private message
acw



Joined: 04 Nov 2005
Posts: 165
Location: Darkest Devon

PostPosted: Tue Jun 29, 2010 8:36 am    Post subject: Reply with quote

Good luck on the DLL front. I tried the same thing using both MFC and direct win32 api from C++ - same problem in both, although my problem is not so much the dialog start up time (although sometimes it's quite slow) - it's more the fact that selecting any of the libraries or other shortcuts in the left-hand pane causes the whole thing to hang for a few minutes, and then often doesn't actually work. Also trying to navigate the folder in the right pan doesn't work when looking at libraries. It's fine if I select the c/d/e/network shares directly and then drill down the folder hierarchy, it's just the libraries and shortcuts.

The only solution I can come up with at the moment is to run a C++-based sub-process for the dialog - not great.

FWIW it looks like the issue is related to the size/complexity of the user's folders, and also what other DLLs/libraries you're using.
Back to top
View user's profile Send private message Visit poster's website
Robert



Joined: 29 Nov 2006
Posts: 460
Location: Manchester

PostPosted: Wed Jul 14, 2010 1:35 pm    Post subject: Reply with quote

This might be worth a look: http://social.answers.microsoft.com/Forums/en-US/w7performance/thread/d997d44f-ea9d-4efb-be7b-5c39fd18f6f6
Back to top
View user's profile Send private message Visit poster's website
lozzer



Joined: 27 Jun 2007
Posts: 49

PostPosted: Wed Jul 14, 2010 1:47 pm    Post subject: Re: Reply with quote

Robert wrote:
This might be worth a look: http://social.answers.microsoft.com/Forums/en-US/w7performance/thread/d997d44f-ea9d-4efb-be7b-5c39fd18f6f6


Good try, but not applicable.

This is what is happening in our situation -

Hit browse button once, twice, three times. No delay. Hit it a fourth time and it can take 30 seconds to respond with an explorer dialogue, during which wait, if you click on the main application you get a 'Program not responding' message which, if you click on the program again will crash the application.

We have tried accessing through a Windows API and we don't get any delays in Win7.
_________________
Lozzer
Back to top
View user's profile Send private message
Robert



Joined: 29 Nov 2006
Posts: 460
Location: Manchester

PostPosted: Wed Jul 14, 2010 1:59 pm    Post subject: Reply with quote

Do you mean you never get a delay if using the API? If so, can you post the fragment so I can compare it with the library code?
Back to top
View user's profile Send private message Visit poster's website
lozzer



Joined: 27 Jun 2007
Posts: 49

PostPosted: Mon Jul 19, 2010 2:25 pm    Post subject: Re: Reply with quote

Robert wrote:
Do you mean you never get a delay if using the API? If so, can you post the fragment so I can compare it with the library code?


We're still working on this one and are trying an alternative route using a different set of API calls.
_________________
Lozzer
Back to top
View user's profile Send private message
lozzer



Joined: 27 Jun 2007
Posts: 49

PostPosted: Tue Jul 20, 2010 3:38 pm    Post subject: Reply with quote

We are using your 'Filter.f95' program and get the same problem.


!****************************************************************************
!* *
!* Salford ClearWin+ Example Code *
!* *
!* filter.f95 - version 1.0 29/6/99 *
!* *
!* Example of ClearWin+ get_filtered_file routine *
!* *
!* only compile using FTN95 version 1.6 or higher *
!* *
!****************************************************************************
!* *
!* Illustrates the use of the function GET_FILTERED_FILE@ to obtain a *
!* filename from the user. *
!* *
!****************************************************************************

winapp

program filter
use mswin
integer :: res, select_file
external select_file
res = winio@('%ca[Filtered File Example]&')
res = winio@('%sy[thin_border]&')
res = winio@('%bg[BTNFACE]&')
res = winio@('%ob[raised]&')
res = winio@('This program illustrates the use of%ff&')
res = winio@('the function GET_FILTERED_FILE@.%ff&')
res = winio@('Use the buttons to make your choice%ff%nl&')
res = winio@('Note: that under WIN32 you will get the%ff&')
res = winio@('enhanced dialog box.%cb%ff%nl&')
res = winio@('%`^tt[&select file]%ff&', select_file)
res = winio@('%tt[&Exit]')
end program filter


!****************************************************************************
!* *
!* Callback function that calls get_filtered_file@ to display the standard *
!* 'open file' window *
!* *
!****************************************************************************

integer function select_file()
use mswin
integer :: res, number_of_filters
logical :: must_exist
character(len=128),dimension (10) :: filter_names, filters
character(len=128) :: file_name,path
character (len=20) :: title
common / pdata / title, file_name, path, filter_names, filters,&
& number_of_filters, must_exist
data ifirst / 1 /
if (ifirst.eq.1) then
ifirst = 0

title = 'select_file File'
path = 'c:\surveys\testdata\example survey - finished'
file_name = 'fred.txt'

filter_names = ' '
filter_names(1) = 'Text files'
filter_names(2) = 'Batch files'
filter_names(3) = 'All files'

filters = ' '
filters(1) = '*.txt'
filters(2) = '*.bat'
filters(3) = '*.*'

number_of_filters = 3
must_exist = .true.
endif

write(*,*) ' pre '
write(*,*) 'title = ', title(1:leng(title))
write(*,*) 'file_name = ', file_name(1:leng(file_name))
write(*,*) 'path = ',path(1:leng(path))
write(*,*) 'number_of_filters = ', number_of_filters
do i = 1, number_of_filters
contd...
_________________
Lozzer
Back to top
View user's profile Send private message
lozzer



Joined: 27 Jun 2007
Posts: 49

PostPosted: Tue Jul 20, 2010 3:42 pm    Post subject: Reply with quote

write(*,*) 'filter_names = ', filter_names(i)(1:leng(filter_names(i)))
write(*,*) 'filters = ', filters(i)(1:leng(filters(i)))
enddo
write(*,*) 'must_exist = ', must_exist


res = winio@('%ca[Result]&')
res = winio@('%bg[BTNFACE]&')
res = winio@('You selected file "%ws"%2nl&', file_name)
res = winio@('%cn%bt[OK]')
select_file = 1
end function select_file


What's happening is that I hit the select file button and choose a file. I do this 3 further times and all is okay. On the fifth time it hangs for about 20 seconds before the file selection window appears.

Then I can hit select file a further 5 times and it'll hang again.

Sometimes it returns no file at all. Sometimes it never even opens the Explorer Window, simply saying I have selected filename ""
_________________
Lozzer
Back to top
View user's profile Send private message
Ade



Joined: 20 Jul 2010
Posts: 6

PostPosted: Wed Jul 21, 2010 9:36 am    Post subject: Reply with quote

Further to the post above regarding using Delphi in a DLL to generate the open dialog, I have found the following :-

Calling the Win32 API 'GetOpenFileName' does not cause any problems but this function was deprecated as of Windows Vista. Since windows vista, file dialogs are handled by a COM object : IFileDialog. Using IFileDialog from my DLL, I get the same erratic behavior as GET_FILTERED_FILE@. GFF@ produces the same style dialog as IFileDialog so I assume that this is what is being used on systems running Vista or later.

A search of the web reveals many people having problems with Open / Save dialogs on Win 7 across many varied applications.
_________________
Adrian Paveling
Systems Developer
McCarthy Taylor Systems Ltd

www.dtmsoftware.com
Back to top
View user's profile Send private message
KennyT



Joined: 02 Aug 2005
Posts: 320

PostPosted: Mon Jun 06, 2011 4:54 pm    Post subject: Reply with quote

Just a quick bump to say that I'm having a similar problem under W7 32 and 64 bit OS. Symptoms as noted above with one or two more to add into the pot...

1 Stopping and starting the app sometimes fixes it.
2 It's not limited to the "documents" library - it happens with "ordinary" folders as well, especially when trying to "save" a file.
3 Sometimes, repeated pressing of the "save" button eventually works.

Anyone found a solution yet?

K
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group