Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Most menu bars become disabled unexpectedly
Message
De
03/11/2009 16:52:30
 
 
À
03/11/2009 12:28:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01432959
Message ID:
01433012
Vues:
72
>>>My client is reporting that occasionally, almost all of the menu bars in a rather complex app are becoming disabled. In their latest report, what I'm seeing is that all the menu pads are enabled, but all bars are disabled on all the pop-ups except for one. The popup where the bars are enabled is appended to the menu when a particular form opens; all the others are part of the base menu for the app.
>>>
>>>While some of the bars that are disabled have SKIP FOR conditions, others do not, so I'm pretty sure this isn't SKIP FOR.
>>>
>>>The form to which the enabled menu belongs is not modal.
>>>
>>>This happens after the user has been working with the app for a bit. I've seen it once or twice, though not recently.
>>>
>>>There are, of course, no specific steps to replicate this. This is the app I've mentioned before where we're running a VFP EXE for the UI that communicates with a couple of VFP COM EXEs that are doing stuff in the background.
>>>
>>>Anybody have any suggestions?
>>>
>>>Tamar
>>
>>Are you sure there is no modal form opened at that time? May be modal form was not properly released?
>
>But this part is suspicious:
>
> what I'm seeing is that all the menu pads are enabled, but all bars are disabled on all the pop-ups except for one. The popup where the bars are enabled is appended to the menu when a particular form opens; all the others are part of the base menu for the app.
>

>
>At the point where the popup where the bars are enabled is appended to the menu, are the other menu items still enabled? When that form is closed, does the problem occur then? Are there different types of code or releasing of that form that can occur? Is it possible that something is irratically forcing that very form (that appends those items) to be modal?

All good thoughts. However, the form in question gets opened early in the run of the app, and usually stays open throughout. The steps the users are giving me for when this happens do not include closing and reopening this form. Rather, the form is open, they use it to open some other (also non-modal) forms, do some things with those other forms and close them. When they get back to this form being on top, the menu bars are disabled. Note also that this happens only occasionally.

One other factor here is that the appended menu does have a SKIP FOR such that it's enabled only when the form that opens it has focus. Hmm, wonder if this is a problem that happens in re-enabling that menu popup. Anybody run into anything like this?

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform