Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird behavior
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Weird behavior
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01028710
Message ID:
01028710
Vues:
77
Hi everybody,

I'm trying to understand very strange behavior, which started to occur quite recently in my colleague's form. When I change a status code in a combobox, the Save is fired twice. For resolution code change (from combobox), the Save happens once. In the form's code there is nothing, which would explain this behavior.

I put a messagebox into main business object PostSaveHook method, which calls a method with StatusCodeBizObj.Save (this biz obj is independent, e.g. has no children or parent). I also put a code into PostSaveHook of this Biz Object, which displays StackInfo information.

I see only one message from the top biz obj and two messages from StatusCodeBizObj, which are absolutely identical. E.g. the message reports what the Save happened by pressing Save button, etc., etc., then PostSaveHook of the main biz object. Same situation happens (though different events sequence) if I save my changes by pressing Close and answering Yes on the Save changes question.

So, the message is misleading, because we see, that PostSaveHook of the primary biz object happened only once (only one messagebox), yet the messagebox from the StatusCodeBizObj reports, that it was called from that object PostSaveHook.

How this could be? More importantly, how can I figure out, why Save of this biz object happens twice?

Do you have some ideas, what and why am I seeing?

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform