Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird behavior
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Weird behavior
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01028710
Message ID:
01028710
Views:
76
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
Next
Reply
Map
View

Click here to load this message in the networking platform