Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh gets aborted by ZOrder
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Refresh gets aborted by ZOrder
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01625937
Message ID:
01625937
Vues:
65
Well, maybe yall know this, but I had a rude awakening today. I have a container in a page of a page frame, in said container I have some several thousand objects representing track sections, each track section is itself a container and the refresh of the container have some code for coloring and simple stuff. This was working well but I was in the middle of making some changes to increase the options on how to display each TrackSection when I was told that this was low priority for the person driving the project left the company, so I moved to a different project, and of course forgot all about my unfinished changes... until they called me without warning to show the program to the vice-president and of course it did not work, after they tap on my back for a job well done I started to try to find out what have I done to kill the program, and I could not see anything wrong with it, so I started debugging and then is when I noticed that the Refresh of the container called the refresh of one of its objects and then finished, ignoring all other thousands of objects, then I remembered that I had added ZOrder(0) in the Refresh of the TrackSection class and removing it solved the issue!

Is this a known issue, have you encountered it too? I thought I should write this to warn others, if for anything just for venting!

[PS] Well, writing this down made me think a little more and I kind of understand why this might happen, after all a call to ZOrder needs to deal with all other objects to put them in place, but it would've be nice if this was written somewhere, or if it is indeed written somewhere it would have been even nicer if I had found it! :) [/PS]
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform