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
KennyT



Joined: 02 Aug 2005
Posts: 320

PostPosted: Mon Jun 13, 2011 2:31 pm    Post subject: Reply with quote

May have a solution.

Step 1: Control Panel -> Administrative Tools -> Services
Set WEB CLIENT to start automatically

Step 2: Start Menu: Search for "indexing options", double click it, click "modify" and then uncheck "offline files".

Reboot and try the file operation again.

Works, so far, for me.

K
Back to top
View user's profile Send private message Visit poster's website
KennyT



Joined: 02 Aug 2005
Posts: 320

PostPosted: Mon Jun 27, 2011 7:16 am    Post subject: Reply with quote

Nope, the problem has recurred...

Crying or Very sad

Anyone got any ideas on a fix?

K
Back to top
View user's profile Send private message Visit poster's website
KennyT



Joined: 02 Aug 2005
Posts: 320

PostPosted: Mon Jun 27, 2011 5:26 pm    Post subject: Reply with quote

Some more info...

Deleting my network shared drive mount points fixes the problem (for now!).

I had two drives (L: and SSmile connected to a couple of other machines on the network, so out of desperation, I deleted them and rebooted... Walah!

K
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: Tue Nov 08, 2011 12:18 pm    Post subject: Reply with quote

All - have any of you folks who have been having problems with this found a definitive solution yet?

I've tried dismounting mapped shares with no success plus various other things. It works okay if I manually enter a path or go via the Computer->Drive Letter entry but anything using Libraries or Favourites hangs and eventually shows an empty folder.

Thanks,
Alan
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8283
Location: Salford, UK

PostPosted: Wed Nov 09, 2011 8:36 am    Post subject: Reply with quote

GET_FILTERED_FILE@ is a wrapper for the API functions GetSaveFileName and GetOpenFileName. These generate the older style of dialog box (not the new Vista and Windows 7 style).

If you can use this style of dialog box successfully in some application (for example Notepad or Microsoft Word) in the contexts that are causing problems, then there must be something wrong with the way in which GET_FILTERED_FILE@ is processing the results from GetSaveFileName or GetOpenFileName.

This being the case, I would need precise details of the situations in which failure occurs.
Back to top
View user's profile Send private message AIM Address
JohnCampbell



Joined: 16 Feb 2006
Posts: 2625
Location: Sydney

PostPosted: Thu Nov 10, 2011 12:36 am    Post subject: Reply with quote

Paul,

I looked at MSDN for "GetOpenFileName" and noted the following:

[Starting with Windows Vista, the Open and Save As common dialog boxes have been superseded by the Common Item Dialog. We recommended that you use the Common Item Dialog API instead of these dialog boxes from the Common Dialog Box Library.]

Would it be possible to provide a version of GET_FILTERED_FILE@ as a wrapper for the API functions from the recommended Common Dialog Box Library to see if this changes the performance.

As I have never been a C.. programmer (although twice trained), I'm not sure what this may involve.
I have an interest in this as my move to Windows 7 is nigh.

John
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8283
Location: Salford, UK

PostPosted: Thu Nov 10, 2011 10:07 am    Post subject: Reply with quote

I see what I can do.
Back to top
View user's profile Send private message AIM Address
acw



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

PostPosted: Fri Nov 11, 2011 11:24 am    Post subject: Reply with quote

Paul. Sorry I can't be more specific about what the causes are. I have created a very simple test app in the past which did seem more "reliable" than my main app. The main app links to a number of additional DLLs (such as Gino Gfx) which may be having an effect. I did think it was down to the size of my documents library but that doesn't seem to be the case although a larger number of files/folders may be making matters worse.

I believe GetOpenFileName etc. do use the Vista dialogs internally if they can, and I have in the past used the common item dialog api within a C DLL and the problem still occurred - maybe have more joy.
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8283
Location: Salford, UK

PostPosted: Tue Nov 15, 2011 4:12 pm    Post subject: Reply with quote

GET_FILTERED_FILE@ will need extending in order to provide access to the Common Item Dialog. You don't get this via GetOpenFileName and GetSaveFileName. I will add this to the wish list.
Back to top
View user's profile Send private message AIM Address
JohnCampbell



Joined: 16 Feb 2006
Posts: 2625
Location: Sydney

PostPosted: Tue Nov 29, 2011 2:42 am    Post subject: Reply with quote

Paul,

Since moving to Windows 7-64, this is now a real problem for me!
I was working late last night and got to testing Get_Filtered_File@ and it hung. I called it quits for the night. The next morning (after rebooting) it all worked. I don't think anyone has identified the cause of this non-performance ?

We need a wrapper for the "Common Item Dialog API" that can provide a pop-up to select a file. It doesn't have to be identical to Get_Filtered_File@, but needs to avoid the loc-up than only sometimes occurs.

Update: I have two graphics programs, both very similar. One does not exhibit the problem, the other when I select file open, hangs for a while in call Get_Filtered_File@ (varies from 10 seconds to now 10 minutes plus) then returns with a blank file_name. I can run both at the same time, indicating that what is causing the problem is more complex than I can understand. I am keeping the latest version of the one that works, in case my next edit tips it over the edge !!

John
Back to top
View user's profile Send private message
IanLambley



Joined: 17 Dec 2006
Posts: 514
Location: Sunderland

PostPosted: Tue Nov 29, 2011 1:36 pm    Post subject: Reply with quote

John,
Just a thought - When you try to identify the problem with a cut down program - does it work? If so, try using the cut-down program as a stand alone spawned from the main program and communicate via files or messages. Use an always_on_top to hide the fact.
Ian
PS, I'm probably talking rubbish - again.
Back to top
View user's profile Send private message Send e-mail
Wilfried Linder



Joined: 14 Nov 2007
Posts: 314
Location: Düsseldorf, Germany

PostPosted: Tue Nov 29, 2011 1:55 pm    Post subject: Reply with quote

This is really astonishing. I use get_filtered_file@ since many years in many programmes, now under Win 7 with 32 or 64 bits, and all times without any problem. I have no idea whether we can find a solution by comparing the relevant parts of our codes? I always use set_open_dialog_path@ just before calling get_filtered_file@ - could it be that this avoid problems? No idea...

Regards - Wilfried
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2625
Location: Sydney

PostPosted: Wed Nov 30, 2011 12:21 am    Post subject: Reply with quote

I have compared the 2 programs I noted previously and now managed to get the one that was not working to work by reducing the memory footprint.
I have a large array to store information (pre ALLOCATE days). This was set to :
integer*4, parameter :: million = 1000*1000
INTEGER*4, PARAMETER :: MXSTOR = 260*million
INTEGER*4 IIBASE(MXSTOR)

The program works for 200m and 260m but fails for 300m and 360m. The memory usage (from the .map file) for 260 gives the hex address :
4cb7f000 end Linker defined

260m > 1,228 mb works on windows 7
300m > 1,381 mb fails on windows 7
360m > 1,609 mb fails on windows 7 works on XP

As I am using Windows 7_64, the next test could be to try ALLOCATE to move the large array above address 2gb and see if it still works.

I have shown that by changing the memory layout (below 2gb) that the program operation changes. Based on this I would estimate that the routines that get_filtered_file@ calls is overflowing the memory requirement and clashing with other memory usage.

( To explain my interpretation; changing the size of common changes the size of section .bss in the link map. This shifts around in memory (0-2gb) a number of system allocations that are not listed in the .map. Changeing from 1.2gb .bss to 1.6gb .bss squashes up these system allocations and probably results in the memory corruption. Not sure when these system allocations are made. Could be at link time or at run time. While modifying the size of the stack or heap might change the performance, I have never been successful using this approach. )

This is possibly why some programs work and others do not in Windows 7.

A patch may be to reduce the size of .bss. If using Win7_64 you have access to 4gb of memory. This might be achieved by using ALLOCATE and shifting large arrays into the 2gb-4gb memory area. You can test this by using l = loc (array) and declare l as integer*8 to report memory addresses above 2gb.

The best solution is to update the API calls and remove this problem.

John

ps: my memory management equivalences real*4, integer*4 and logical*4 arrays for sharing the memory. If anyone knows how to reproduce this using ALLOCATE and modules, I'd like to know.
Code:
!     Last change:  JDC   7 Aug 2009    3:03 pm
!   INCLUDE sapcom.ins         structure variables
!
      integer*4, parameter :: thou   =      1000
      integer*4, parameter :: mill   = thou*thou
      INTEGER*4, PARAMETER :: MXSTOR =  360*mill ! maximum storage available (I*4) in XP
!
      COMMON /SAPCM9/ AABASE                  ! memory buffer
      REAL*4    AABASE(MXSTOR)
      INTEGER*4 IIBASE(MXSTOR)
      LOGICAL*4 LLBASE(MXSTOR)
       EQUIVALENCE (AABASE,IIBASE)
       EQUIVALENCE (AABASE,LLBASE)
!
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2625
Location: Sydney

PostPosted: Tue Dec 06, 2011 3:38 am    Post subject: Reply with quote

Has anyone tried reducing memory to solve this problem ?
Having a memory usage report from the load map somewhere between 1,228mb and 1,381mb load map appears to solve the problem and is consistently working for me. It would be good to know if it works in other cases also.

John
Back to top
View user's profile Send private message
simon



Joined: 05 Jul 2006
Posts: 308

PostPosted: Thu Jan 05, 2012 6:07 pm    Post subject: Reply with quote

On my second call to get_filtered_file@ the routine returns immediately with a blank filename - it will not even open the dialog box.
Back to top
View user's profile Send private message
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 3 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