Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object class is invalid for this container
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Object class is invalid for this container
Divers
Thread ID:
00890965
Message ID:
00890965
Vues:
52
I am moving all my apps to VFP 8.0. I have begun to have serious problems with forms being corrupted. This first occurred when I subclassed Rick Strahl's wwipstuff.vcx so I could override the sendmapimail method and taylor it to my environment's new security requirements. In doing so, I opened a form that had a visual class rep of Rick's original wwipstuff.vcx, and deleted the visual object on the form. Next time I opened the form, I could not, it failed with error like this:
"error loading file: error number nn. udclabel2 or one of its members. Parent: object class is invalid for this container."

I created a new form, and rebuilt it from a backup copy of the original form, moving all objects and code to the new form EXCEPT the visual class dropped on the form.

Today, I have now had this same problem occur to two forms. In the first case, I simply copied a form set to a new project, I added it to the project, opened it, and deleted some label and some text boxes. Closed it. Opened it. Same error. Again, to work around, I created a new form and copied all the objects and method code I needed from the old form a page of objects at a time (multiple page frames). And no, the original problem occured in a form with NO page frames. There were two originally, one with out without a page frame. Both had to be rebuilt to get rid of the class object dropped on the form. (I found one reference by google of a similar occurence based on changed number of pages in a pageframe. not the case here.)

Finally, today I had a form open copying objects from it, and as far as I know deleted nothing on it, changed nothing on it, but later when I tried to open it I must have done something, it can now not be opened.

Pretty frustrating stuff. At least the form now corrupted should be on last weeks tape so I don't have to rebuild it: 12 pages on a frame, LOTS of data and code.

Thanks for any ideas.
Ron.

Ronald D. Edge
Director of Information Systems
http://iuhoosiers.com
http://edgeinfotech.com
Ronald D. Edge
Retired from Indiana University Mar 1, 2011

"You've got to be very careful if you don't know where you are going,
because you might not get there."
“When you come to the fork in the road, take it.”
--Yogi Berra
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform